Skip to content

PHP code snippet – How to add values to an array in laravel?

$array = array('foo' => 'bar');

$array = array_add($array, 'key', 'value');
See also  Python code snippet - How to make objects bounce in trutle?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.