I want to add elements by the browser into an array with the name $map
I wrote the next piece of code for this:
<?php $var = $_POST["var"]; function addIntoArray($var) { global $map; if (($var != ".") || ($var != "..")) { array_push($map, $var); echo $var . " succesfully added to the array!"; }