I have this code:
foreach($new_names as $value)
the variable $new_names = array("Jonh", "Petter", "Carl", "Marie", "Arthur");
its like this.
However if I make this variable like this
$new_names = $firstnames[array_rand($firstnames)]." ".$lastnames[array_rand($lastnames)];
It gives me a error on the line of the foreach...anyone knows why?
thanks