0
I’m creating a array
but it is returning me the error:
Fatal error: Can’t use Function Return value in write context in C: xampp htdocs cadastro_insert.php on line 54:
Where am I going wrong???
$array = array(1, 2, 3, 4, 5, 6); --> tambem tentei: $genero = array(6);
$x = 0;
if ($genero01 != "") {
$x++;
$array($x) = $genero01;
}
if ($genero02 != "") {
$x++;
$array($x) = $genero02;
}
...
Substitute
$array($x)
for$array[$x]
– Roberto de Campos
It worked Oberto. Thank you
– Márcio Fernandes