Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php function to remove null or 0 value from array

 $myarray = array_filter($myarray, 'strlen');  //removes null values but leaves "0"
 $myarray = array_filter($myarray);            //removes all null values
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #function #remove #null #array
ADD COMMENT
Topic
Name
1+1 =