Code Snippets

PHP: foreach loop
PHP: add optional parameters to a function
PHP: create a static method
PHP: check array contains a value
PHP: try catch block
Linux: open vim with the cursor positioned at the end of the file
Linux: substitute user with su command
Linux: read a man page
Linux: extract specific directory or file from bzipped TAR archive
PHP: check year is in YYYY format using regular expression
PHP: for loop
PHP: get array length
PHP: create an array
PHP: get string length
PHP: define a constant
PHP: send an email