Archive for August, 2009
highlight_string()
Adds HTML to a string to format it as a PHP editor might. Prints to output, or set second parameter to true to get output returned as a string.
unset()
Destroys a variable (or multiple variables) within the current scope only.
array_splice()
It’s the array version of substr_replace(). Replace a portion of an array with elements of another array.
array_slice()
Like substr() for an array. Specify the index to start from, number of elements, and whether to preserve the keys.
array_replace()
Combines arrays, overwriting existing keys and appending others. Similar to array_merge() but doesn’t re-index.
array_chunk()
Splits up an array into a multidimensional array with each new element containing a specified number of elements of the original array.
mkdir()
Creates a directory and sets the permissions of it.
Songs in Code
The trend the past couple of days has been writing code which emulates a song. Go on, have some fun with it.
getmyinode()
Gets the inode of the current file.
fileinode()
Gets the inode of a given file (or directory). For Unix-like systems only.
