What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-10-13 07:18:10
add values to array dynamically php
There are quite a few ways to work with dynamic arrays in PHP. Initialise an array: $array = array(); Add to an array: $array[] = "item"; // for your $arr1 $array[$key] = "item"; // for your $arr2 array_push($array, "item"... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5