Here is a clean method I've discovered:
$myArray = [];
array_push($myArray, (object)[
'key1' => 'someValue',
'key2' => 'someValue2',
'key3' => 'someValue3',
]);
return $myArray;
Here is a clean method I've discovered:
$myArray = [];
array_push($myArray, (object)[
'key1' => 'someValue',
'key2' => 'someValue2',
'key3' => 'someValue3',
]);
return $myArray;
For further actions, you may consider blocking this person and/or reporting abuse
Megan Lee -
Inderpreet Singh Parmar -
Ian Ndeda -
Andrei Telteu -
Top comments (0)