How-to articles, tricks, and solutions about PHP
How to count days between two dates in PHP?
You can use the DateTime class in PHP to calculate the number of days between two dates.
How to create and download a csv file from php script?
To create and download a CSV file from a PHP script, you can use the following steps:
How to create new property dynamically
In PHP, you can create a new property for an object dynamically by using the magic method __set.
How to delete multiple records using Laravel Eloquent
You can use the destroy() method in Laravel Eloquent to delete multiple records.
How to disable output buffering in PHP
In PHP, you can disable output buffering by calling the ob_end_flush() function or flush() function.