Cita:
Iniciado por Italico76
Entonces.. define un __toString() en Alumnos :)
Código PHP:
Ver originalpublic function __toString()
{
return "{$this->_nombre} ({$this->_edad} años) de {$this->_carrera}\n";
}
Gracias !!! eso es...
se agradece mucho su ayuda