Ver Mensaje Individual
  #8 (permalink)  
Antiguo 11/06/2014, 09:42
javo27
 
Fecha de Ingreso: junio-2014
Mensajes: 6
Antigüedad: 9 años, 10 meses
Puntos: 0
Respuesta: Problema con imprimir Objeto

Cita:
Iniciado por Italico76 Ver Mensaje
Entonces.. define un __toString() en Alumnos :)

Código PHP:
Ver original
  1. public function __toString()
  2.     {
  3.          return "{$this->_nombre} ({$this->_edad} años) de {$this->_carrera}\n";
  4.     }

Gracias !!! eso es...
se agradece mucho su ayuda