PHP General Tricks and Tips
Here is my list of tips, tricks and short articles for doing related tasks in PHP.
- How can you check if a variable is alphanum (alphanumeric, letters and numbers only) in PHP?
- How could you include a custom function for every single time PHP runs?
- How do you access the php://input stream?
- How do you launch the PHP interactive shell?
- How does PHP compare objects?
- How to check if a object has a static variable defined?
- How to check if two strings are anagrams in PHP?
- How to destroy or remove a cookie in PHP
- How to find out which php.ini file PHP is using?
- How to manually write your own pagination in PHP
- How to query mysql using PDO in PHP?
- How to reverse htmlentities() / What is the opposite of htmlentities()?
- How to set infinite execution time in a PHP script
- How to use Anonymous classes in PHP 7?
- How to view all installed PHP modules?
- What are PHP's PSRs?
- What are the main error types in PHP
- What are the SPL data structures
- What are the SPL Iterators in PHP?
- What does PEAR stand for?
- What is camel case?
- What is snake case?
- What is the null coalescing operator in PHP7?
- What is the spaceship operator (<=>) in PHP?
- When is __destruct called in PHP?
PHP General Cheatsheet (all on one page)