How-to articles, tricks, and solutions about PHP
How can I print all the values of an array?
In PHP, you can use a foreach loop to iterate through an array and print each value.
PHP sort array alphabetically using a subarray value
In PHP, you can use the "usort" function to sort an array by a specific value of a subarray.
Add 30 seconds to the time with PHP
You can use the strtotime function in PHP to add a specified number of seconds to a given time.
PHP - setcookie(); not working
There are several reasons why the setcookie() function may not be working.
Is there a built-in way to get all of the changed/updated fields in a Doctrine 2 entity?
Yes, Doctrine 2 provides a built-in way to get the changed fields in an entity.
Unique and temporary file names in PHP?
In PHP, you can use the tempnam() function to generate a unique and temporary file name.