Home Blog Page 6

Object Cloning in PHP


If you will directly copy objects in php, then it will copy by reference, not by value. Means if you will change main object data then copied object will be affected. Also if you will change value of the copied object then main object value will be changed. So if you want to create copy of the object which should never referenced to original object then you can take help of object cloning in php. In this tutorial we will explore what is usual object copy by reference and then object cloning. Also in end of this tutorial we will use __clone magic method to customize object cloning process in php.

Interesting Facts About C Language


C is one of the most widely used programming languages of all time, and C compilers are available for the majority of available computer architectures and operating systems. And the reason behind its wide usage are some interesting facts that we will discuss here. We are going to discuss about two things: