In this tutorial we learn PHP Star Pyramid Patterns programs Simple and easy way examples. We have added various types of star (*) patterns with best one loop, two loop example to print different types of star pattern in PHP easy and simple way. These all the star pattern examples are useful for interview questions of PHP. Interviewers may ask questions based on creating … [Read more...] about PHP Star Pyramid Patterns Programs Simple and Easy Way to Print
Coding Driver share most popular and useful tips, tricks and tutorial with example of PHP, here you can find list of all relevant posts and example about php.
More then times we need to return array insteed of collection in laravel eloquent query, So here added best examles for your questions How to return an array instead of a collection in Laravel? We can use laravel toArray() and pluck() methods. We have added multiple example to return array instead of object colection below with outpu. Example 1: Output: Example 2: … [Read more...] about How to Return an Array Instead of a Collection in Laravel
Here in this article we are going to share how to use left join query builder in laravel project. We have added a best easy example to write left join query in laravel. The first argument passed to the join method is the name of the table you need to join to, while the remaining arguments specify the column constraints for the join. You may even join multiple tables in a … [Read more...] about Laravel Left Join Eloquent Query Example
In this article we are going to share to how to check if a string contains any substring in laravel. Many times we need to check if one or multiple strings are contains a exact word then Laravel has a Str helper function. Str class has contains() method that will provide to check string contains in laravel application where in php we can use str_contains. Let's see the below … [Read more...] about PHP Laravel: Check if a String Contains a Specific Word Example
Today in this article we learn How to Generate Word Document File in Laravel. More then times we need to generate html to doc, docx file from laravel blade. If you want to exporting your data using docx file in your laravel application or php then here we make a simple step by step easy steps for export word file using php function not using any library. More then websites … [Read more...] about How to Generate Word Document (Doc) File in Laravel