5
I want to receive the array containing numbers 3, 15 and 23 and array output display double. Only it is giving the following error:
Warning: Missing argument 1 for criando_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;
?>
Thank you. It worked correctly.
– Thiago