Tips & Tricks
Below are a few PHP tips and tricks I have found very useful, and hope to share it with you guys.
1. Code with error reporting
This will save you an insane amount of time, all by simply adding a two line snippet of code. Essentially, it’s just forcing the server to print PHP errors so that if anything does fail, you can identify the cause. Just throw the snippet below into the top of any file.
1 2 | error_reporting |