I want to get the array containing the numbers 3, 15 and 23 and with an output array display twice. But it is giving the following error:
Warning: Missing argument 1 for creating_array (), called in
<?php
function criando_array($array){
$array = array();
return $array;
}
function dobrar_array(){
$dobrar = criando_array();
foreach($dobrar as $lista){
echo $lista*2 . "<br>";
}
}
$resposta = dobrar_array(array(3, 15, 23));
echo $resposta;
?>