I got following fatal error in php can’t use method return value in write context. When this fatal error comes i didn’t understand what’s wrong with my code, as everything looks fine in my code editor. So i started debugging what’s the root cause for this error.
Difference between double and triple equals in PHP
What’s the difference between double and triple equals in PHP ? PHP supports both double (==) and triple (===) comparison. Then when to use double equal to and when to use triple equal to in our code.
How to reverse a number using PHP code. This question is asked by one of our blog follower on webrewrite facebook page. In this tutorial, We’ll learn how to reverse a number by creating our own custom method.
How to check if a value exists in an array using PHP. PHP provides a couple of inbuilt method such as in_array() , array_search() through which we can check if a value exists in an array or not. Apart from using inbuilt PHP methods, we’ll write our own custom method as well.
Let’s check how to solve this problem using PHP inbuilt method as well as our own custom function.
PHP 5 introduced the concept of constructor. Constructors are magic method which call automatically when object is created. But when you define the constructor method both in Child and Parent class, it will not call until you explicitly reference it. So How to call parent class constructor in child class.
Given an unsorted array. How to find duplicates in array using PHP. These types of questions are generally asked in interviews. Sometimes interviewer allows to use in-built function sometimes not.
This question is asked by one of our forum user. I have set up LAMP in my Ubuntu operating system. I am using PHP version 5.3. I want to know how to install and enable curl in Ubuntu.