Evidentemente il php interpreta la tua variabile come un array.
Prova a fare
oppureCodice PHP:
$var = settype($var, "string");
$clean = strtolower($var);
Comunque con la funzione gettype() vedi subito che tipo di variabile hai.Codice PHP:
$var = (string)$var;
$clean = strtolower($var);