Archive for June, 2009
php_strip_whitespace()
Strip whitespace and comments from the php blocks of a file. Returns a string of valid PHP.
strpbrk()
Searches a string for a character in a list of characters. Returns the string starting from that character found. Case sensitive.
array_change_key_case()
Changes the case of an array’s keys to either all uppercase or all lowercase.
list()
Assign values to multiple variables at once. Can be used to assign array elements to individual variables.
each()
Gets the current key/value pair and advances the array’s pointer to the next element. Like key(), current(), and next() combined.
key()
Returns the key of the element at the array pointer. This is initially the first element of the array. Returns false if pointing past the end of the array (or if array is empty).
end()
Set the array’s pointer to the last element and return the value there.
prev()
Moves the array’s pointer backward one and returns the value there. Returns false if pointing past the beginning of the array (or if array is empty).
reset()
Sets the array’s pointer to its first element and returns the value there.
next()
Moves the array’s pointer forward one and returns the value there. Returns false if pointing past the end of the array (or if array is empty).
