Pass by reference in PHP
Reading Time: < 1 minutes In PHP you can pass a variable to a function as reference. When you do that actual “Memory address is passed” instead of “A Copy of the value” hence any change you make inside the…
Writing Code for fun and profit since 2000.
Writing Code for fun and profit since 2000.
Reading Time: < 1 minutes In PHP you can pass a variable to a function as reference. When you do that actual “Memory address is passed” instead of “A Copy of the value” hence any change you make inside the…
Reading Time: < 1 minutes As per php documentation, Because static methods are callable without an instance of the object created, the pseudo-variable $this is not available inside methods declared as static. In the above code snippet, static method getValue() will…
Reading Time: 3 minutes “The best way to predict the future is to invent it.” – Alan Kay “People who are really serious about software should make their own hardware.” – Alan Kay “The only way to do great work is to…