Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

array push object php

$myArray = [];

array_push($myArray, (object)[
        'key1' => 'someValue',
        'key2' => 'someValue2',
        'key3' => 'someValue3',
]);

return $myArray;
 
PREVIOUS NEXT
Tagged: #array #push #object #php
ADD COMMENT
Topic
Name
8+7 =