Browsing Category
PHP
PHP: Hypertext Preprocessor is a general-purpose programming language originally designed for web development. It was originally created by Rasmus Lerdorf in 1994; the PHP reference implementation is now produced by The PHP Group.
PHP Functions: How to Use Functions In PHP
A function is a block of statements used repeatedly in a program. A function will not execute immediately when a page loads. Instead, a call to the function will execute a function. The real power of PHP comes from its functions; it has…
PHP array_map: How to Modify All Array Elements
The array_map() function helps to modify all the elements of one or more arrays according to some user-specific conditions straightforwardly.
PHP array_map
The array_map() is a built-in PHP function that sends each value of an array to…
PHP count_chars: How to Count ASCII Characters of String
The count_chars() function in PHP is used to perform several operations related to string, like a number of an ASCII character occurs in the string.
PHP count_chars()
PHP count_chars() is a built-in function that returns information…
PHP chunk_split: How to Split String in PHP
PHP chunk_split() is a string function that splits the string into a series of smaller parts. It does not return the original string.
PHP chunk_split()
PHP chunk_split() is a built-in string function used to split or divide the string…
PHP str_split: How to Split a String in PHP
The str_split() function splits the given string into smaller strings of the length specified by a user, stores them in the array, and returns an array.
PHP str_split()
PHP str_split() is a built-in function that splits a string into an…
PHP array_key_exists()| How To Check If An Array Element Exists
PHP array_key_exists() is an inbuilt function that checks the array for a particular key and returns a true value if the key exists and returns false if the key does not exist. If you skip the key when you define an array, the integer key…
PHP array_intersect_key: How to Compare Array Keys
PHP array_intersect_key() is an inbuilt function that compares the keys of two (or more) arrays and returns the matches. The function compares the keys of two or more arrays, and return the array that contains the items from array1 that are…
PHP array_fill_keys() | How To Fill Array Keys In PHP
PHP array_fill_keys() is an inbuilt function that fills an array with values, specifying keys. The array_fill_keys() function is used to create the new array filled with the given keys and value provided as the array to a function.
PHP…
PHP array_udiff() Function Example
PHP array_udiff() is an inbuilt function that compares the values of two or more arrays and returns the differences. The array_udiff() function uses the user-defined function to compare the values. The function compares the values of two…
PHP array_product: How to Calculate Product of an Array
PHP array_product() is an inbuilt function and is used to find the products of all the items in the array.
PHP array_product()
PHP array_product() is an inbuilt function that calculates and returns the product of an array. The…
PHP strtok Function Example | strtok() Function Tutorial
PHP strtok() is an inbuilt function that splits the string into smaller strings (tokens). The strtok() splits a string (str) into smaller strings (tokens), with each token being delimited by any character from the token. That is if you have…