array_reverse() |
This function reverses the order of elements in an array. |
array_values() |
This function returns all the values from an array and auto eliminate the previous keys and reassign index starting from 0. |
array_diff() |
This function is used to get array differences. This function returns those values from the first array that are not present in other arrays. |
array_key_exists() |
This function is used to check the existence of the given array index in the array. |
array_map() |
This function is used to apply a callback function on each element of an array. |
array_push() |
This function is used to push one or more elements to the end of an array. |
array_search() |
This function searches a value in an array and returns its key. |
array_unique() |
This function removes the duplicate values from the array. |
array_unshift() |
This function inserts new array elements at the beginning of an array. We can insert one or more elements in the array. |
ceil() |
Ceil function is used to round float value to the nearest integer value. |
chr() |
This function returns character from the ASCII value. |
class_exists() |
This function is used to check whether the class name is exist or not. |
copy() |
This function is used to copy a file. It returns a boolean value. |
count() |
This function returns total number of elements in an array. |
curl_setopt() |
curl_setopt is used to set option for a cURL transfer. It returns a boolean value. |
define() |
This is used to define a named constant. |
defined() |
This function is used to check the existence of a constant. It returns a boolean value. |
delete() |
This is used to delete a file. |
die() |
This is used to display a message and exists from the current script. |
dirname() |
This is used to get the parent directory name of the given directory. It returns the directory name one above the current given directory. |
each() |
This is used to return the current key value pair of an array. |
empty() |
This function is used to check whether the variable is empty or not. If a variable does not exist, then it is considered to be empty. |
end() |
This function is used to return the last element of an array. |
error_reporting() |
This is used to report the errors. This return the errors of script at the run time based on the given error type. |
exit() |
This returns the specified message, error code and terminates the script. |
explode() |
This function is used to split a string into multiple strings based on the specified delimiter. |
exp() |
This is a mathematical function used to calculate exponent. |
fclose() |
This function is used in file handling, to close the open file. |
file_exists() |
This function is used to check whether a file or directory exists or not. |
fread() |
This function is used to read an open file. |
function_exists() |
This function is used to check the existence of a function. |
get_class() |
This function is used to get the class name of the given object. |
get_current_user() |
This function is used to get the owner of the current file. |
getdate() |
This function is used to get current date and time information. |
getenv() |
This function is used to get the value of an environment variable. |
hash() |
This function is used to convert data in hash form. |
header() |
This function is used to redirect a page to a different url, to set the content type. |
implode() |
This function is used to convert array elements into string. |
in_array() |
This function is used to check the existence of a value in an array or not. |
is_bool() |
This function is used to check whether the variable datatype is boolean or not. |
is_file() |
This function is used to check the existence of a file. |
is_null() |
This function is used to check whether a variable is null or not. |
is_readable() |
This function is used to check whether a file exist and readable or not. |
isset() |
This function is used to check whether a variable is set with a value or null. |
key() |
This function returns element at the key position. |
ksort() |
This function is used to sort the array elements in ascending order by keys. |
md5() |
This function is used to generate hash value of a string. |
method_exists() |
This function is used to check the existence of a method in a given object. |
mkdir() |
This function is used to create directory at the specified path or location. |
mt_rand() |
This function is used to return a random number. This is faster than the rand function. |
next() |
This function is used to get the value at the next array pointer from the given location. |
number_format() |
This function is used to format the number values. |
ob_end_clean() |
This function is used to destroy the output buffer. |
ob_get_contents() |
This function is used to return the content of the output buffer. This is used before buffer clean and after output start. |
ob_start() |
This function is used to start output buffering. When this is turned on, instead of sending the data, it stores in the internal storage. |
parse_url() |
This function is used to parse the url and returns the associative array. |
rand() |
This function is used to generate the random number. You can also set the specific range to generate the number. |
sort() |
This function is used to sort the array elements in ascending order. |
split() |
This is used to divide the string from the given pattern into elements that form an array. |
str_repeat() |
This function is used to repeat the string, a given number of times. |
strlen() |
This function is used to get the length of a given string. |
strtolower() |
This function is used to convert all string characters to lowercase. |
strtoupper() |
This function is used to convert all string characters to uppercase. |
substr() |
This is used to return a substring from a string from the specified position. |