Some useful php functions

* strstr() – for finding string within a string in PHP

* eval() – function evaluates a string as PHP code

* reset() – function points the internal cursor position at first element of array.

* list() – function is used to assign values to a list of variables in one operation.

* each() – function will return the current key and value pair from an array and will move the array cursor.

* implode() – function is used to join the array elements with string.

* explode() – function is used to split a string a by string.

* is_array() – Finds whether a variable is an array.

* realpath() – function returns the absolute path name.

* stripslashes() – function is used to remove backslashes from data.

* addslashes() – function returns a string with backslashes in front of predefined characters.

See detailed explanation of these functions here

Posted in Php