Tema: Obj
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 12/04/2010, 21:30
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Obj

Es mejor si usas clone como te indico Pateketrueke:
Código PHP:
Ver original
  1. $obj = new foo();
  2. $obj_copia = clone $obj;

Saludos.