Today I just discovered that in php you can do :
$instance = new MyObject();
// Here $instance->getName() == 'First Instance'
$instance->setName('First Instance');
// Here $newInstance->getName() == null
$newInstance = new $instance();
Obviously $newInstance is a valid 'MyObject' object.
Can someone tell me what this way to go involve and if it is or isn't a must NOT do?
Thx mates !