Object cloning or clone of an object means to create a duplicate of an object. With regular variables $var1 = $var2 means that a new variable $var1 created and have the value of $var2 that means 2 variables created. With objects $obj2 = $obj1 does not mean that a new object i.e. $obj2 get…
PHP Magic Predefined Constants & usages In PHP, a constant is a name or an identifier for a simple value. A constant name starts with a letter or underscore can be followed by any number of letters, numbers, or underscores. If you have defined a constant, it can never be changed or undefined. You…
Magic Methods in PHP (PHP Magical Reserved Functions Starts with double underscore) According to me you all have heard about the PHP Magic methods. You have also used some of these like __autoload and __construct. Let’s have a quick view on magic methods, as sometimes it looks like it will hard to use these…
WordPress .htaccess on zeus server rewrites (rather than Apache) Yesterday, I got luck to transfer a WordPress website from one hosting to another. The New hosting provider is http://www.names.co.uk and what I have found is it provides the web server Zeus instead of Apache as always I have worked on. It is really…