PHP func_get_args()

Returns an array of the function’s argument list in other words It returns an array in which each element is a copy of the corresponding member of the current user-defined function’s argument list. <?php function myfunction() { $numargs = func_num_args(); … Continue reading

Posted in PHP | Tagged , | 1 Comment

PHP Object Cloning

Creating a copy of an object with fully replicated properties is not always the wanted behavior. Example is if your object holds a reference to another object which it uses and when you replicate the parent object you want to … Continue reading

Posted in PHP | Tagged , | Leave a comment