Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php function to remove 0 value from array

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