Tag Archives: shallow clone

How To Clone Objects in PHP5

      No Comments on How To Clone Objects in PHP5

Object cloning in PHP puts the same problems as in any other language. In addition to other popular languanges in PHP, starting with PHP5 there is present the operator clone. By default it creates an identical clone of the original object. If the original object contains references to another object,… Read more »