I am creating a array
but it is returning me the error:
Fatal error: Can not 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;
}
...