Php null value replacement in script
To replace all occurrences of null in an array with another value you can use the array_map() function that is built into PHP. This function applies a callback function to each item in your array and returns a new array with all the return values of that callback function.5
is_null
is_null — Finds whether a variable is
null
Definition and Usage
The is_null() function checks whether a variable is NULL or not.
This function returns true (1) if the variable is NULL, otherwise it returns false/nothing.
Post a Comment
0Comments