Like Laravel Tips and Tricks, I will post here Tips and Tricks for PHP, but less regularly.
If this is something you are interested in, make sure you follow/watch this thread.
PHP Tip #1
Here is an example of how to convert an array of paragraphs to HTML string with <p> tags.
Starting today, I will be posting one to two Laravel refactoring tips a week. If this is what you are interested in, you can follow/watch this thread.
I will also make it sticky so that it is fixed at the top of the list under the Laravel (PHP Framework) forum.
Laravel Tip #1
Here is an...
In this article, I will show you how to create a cron job to automate the /tmp directory clean-up process in Linux.
I am going to use the script described in the previous thread about the Linux /tmp directory:
find /tmp -type f \( ! -user root \) -atime +5 -delete
This script finds temporary...