Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php array_push in foreach duplicate

foreach($something as $value){
    if(!in_array($value, $liste, true)){
        array_push($liste, $value);
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #foreach #duplicate
ADD COMMENT
Topic
Name
9+8 =