Skip to content

PHP code snippet – How to append an array into associative array?

$data[$category][] = $item;
See also  How to declare an empty set in Python?
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

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.