Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php array push

If you're going to use array_push() to insert a "$key" => "$value" pair into an array, it can be done using the following:

    $data[$key] = $value;

It is not necessary to use array_push.
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #array #push
ADD COMMENT
Topic
Name
8+7 =