Re: [PHP-ES] Un método me devuelve un array, cuando debería ser un string.

[email protected] (Ariel Camino)
Newsgroups php.general.es
Message-ID <[email protected]>
Es el mismo error teórico que te marcaron antes, lo estás cometiendo
una y otra vez:

Esto:

$fich->leer();

Retorna un array y no lo estás almacenando en ningún lado, cuando
haces un print_r($fich) lo que estás imprimiendo es el objeto, no el
array, tenes que entender la diferencia:

print_r($fich); es un objeto
print_r($fich->leer()); es un array

Finalmente yendo al problema puntual, cuando haces esto:

$modifFich->modificarFich($limpEsp);

Le estás mandando $limpEsp, y $limpEsp es un objeto, no es un array.

Saludos,
-- 
Ariel Camino
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.