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