Anyone knows how is this function used? It's supposed to create an identical copy of an existing and it's also supposed that the function doesn't have to be declared on it's corresponding class.
But in real I do the following thing and it doesn't work:
$first=new Prueba2("9","2","3","4");
$second=$first->__clone();
In fact, even declarating a __clone() function into the class Prueba2, it doesn't work.
I'm using last PHP version (5.2.8), in the case that could influence.
Thanks in advance.
But in real I do the following thing and it doesn't work:
$first=new Prueba2("9","2","3","4");
$second=$first->__clone();
In fact, even declarating a __clone() function into the class Prueba2, it doesn't work.
I'm using last PHP version (5.2.8), in the case that could influence.
Thanks in advance.