Related Topics
PHP is_long() Function
The PHP is_long () function in PHP is used to find whether a variable is an integer or not. It returns a Boolean value true if the parameter var is integer else it returns...
1 minute read.
PHP join() Function
PHP join() Function The join() function of PHP returns a string from the elements of an array. This function is an alias of the implode() function. Syntax join(separator,array) Parameter separator(Optional)- Specifies what to put between the array elements. The default...
1 minute read.
PHP array_intersect() function
The array_intersect () function in PHP is used to compute the intersection of arrays. It returns an array containing all the entries from array1 that are present in all the other arrays. Syntax array_intersect ( array $array1 , array $array2 [, array $... ]) Parameter array1(required)- This parameter...
1 minute read.
PHP var_export() Function
PHP var_export() Function The var_export() function in PHP is used to get the structured information for the specified variable. This function outputs or returns a parsable string representation of a variable. This function is similar to...
1 minute read.
PHP Multidimensional Array
An array of arrays is called multidimensional array. It is used to store the data in a tabular form. It is represented in the form of matrix (row*column). Example: We can store...
2 minutes read.
PHP number_format() Function
PHP number_format() Function The number_format() function in PHP formats a number with grouped thousands. This function accepts one, two, or four parameters (not three): Syntax number_format ( float $number [, int $decimals ] ) or number_format ( float $number , int $decimals , string $dec_point, string$thousands_sep ) Parameter number(required)- This parameter represents the number to be formatted. If...
1 minute read.
PHP quoted_printable_decode() Function
PHP quoted_printable_decode() Function The quote_printable_decode() function of PHP converts a quoted-printable string to an 8 bit string. It works similar to imap_qprint(), except this one does not require the IMAP module to work. Syntax quoted_printable_decode ( string $str ) Parameter str(required)- This parameter represents the...
1 minute read.
PHP wordwrap() Function
PHP wordwrap() Function The wordwrap() Function wraps a string to a given number of characters using a string break character. Syntax wordwrap ( string $str [, int $width [, string $break [, bool $cut ]]] ) Parameter str(required)- This parameter specifies the input string. width(optional)- This parameter represents the number of...
1 minute read.
PHP array_shift() Function
PHP array_shift() Function The array_shift() in PHP shifts the first value of the array off. This function returns the same value after shortening the array by one element and moving everything. Syntax array_shift ( array &$array ) Parameter array(required)- This parameter represents the input array Return This function returns...
1 minute read.
PHP array_intersect_uassoc() function
The array_intersect_uassoc () function in PHP is used to compute the intersection of arrays with the help of an additional index check, comparing indexes by a callable function. It returns an array containing...
1 minute read.
PHP addcslashes() Function
The addcslashed() function in PHP is used to add quote string with slashes in a C style. It is case-sensitive function. Syntax addcslashes (str, charlist ) Parameter str(required)- This parameter represents the string to be escaped. charlist(required)-...
1 minute read.
PHP metaphone() Function
PHP metaphone() Function The metaphone() function in PHP calculates the metaphone key (representing how a string sounds or pronounced) of a string. This function is used to text search and text matching or spelling...
1 minute read.
PHP printf() Function
PHP printf() Function The printf() function in PHP outputs a formatted string. The related functions of printf() function are as follows: sprintf()vprintf()vsprintf()fprintf()vfprintf() Syntax printf ( string $format [, mixed $... ] ) Parameter format(required)- This parameter formats the string which is composed of zero or...
1 minute read.
PHP Super Global Variables
There are various predefine “superglobals” in PHP. These variables can easily accessible in function or class. Following are the superglobals variables: $GLOBALS $_SERVER $_REQUEST $_POST $_GETetc. PHP $GLOBALS The “$GLOBAL” isa keyword that...
2 minutes read.
PHP htmlspecialchars_decode() Function
PHP htmlspecialchars_decode() Function The htmlspecialchars_decode() function in PHP convert some predefined HTML entities to characters. The some predefined HTML entities that will be decoded are as follows: & OR & (ampersand)" OR " (double quote)'...
2 minutes read.
PHP array_replace() Function
PHP array_replace() Function The array_replace() function in PHP replaces the elements from passed arrays into the first array with values having the same keys in each of the following arrays. Syntax array_replace ( array $array1 [, array $... ] ) Parameter array(required)- This parameter represents...
1 minute read.
PHP array_key_last() function
The array_key_last () function in PHP gets the last key of an array if the specified array is not empty. Syntax array_key_last ( array $array ) Parameter array(required)- This parameter signifies the input array. Return This function returns the last key of the...
1 minute read.
PHP strtolower() Function
The strtolower() function in PHP is used to convert a string to lowercase. This function is binary-safe. The related functions are as follows: strtoupper()lcfirst()ucfirst()ucwords() Syntax strtolower ( string $string ) Parameter string(required)- This parameter represents the input string. Return This function returns a string with all alphabetic...
1 minute read.
PHP vfprintf() Function
PHP vfprintf() Function The vfprintf() function in PHP writes a formatted string to a specified output stream. Syntax vfprintf ( resource $handle , string $format , array $args ) Parameter handle(required)- This parameter represents where to write the string. format(required)- This parameter specifies the string and how to format the...
3 minutes read.
PHP list() Function
PHP list() Function The list() function in PHP sorts an array by key while maintaining the keys. Syntax list ( mixed $var1 [, mixed $... ] ) Parameter var1(required)- This parameter accepts variables separated by spaces. …(optional)- This parameter accepts a list of variables separated...
1 minute read.

