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.
How to create drag and drop multiple file upload in PHP using DropzoneJS. In this tutorial you’ll learn about how to build multiple file upload feature using DropzoneJs.
PHP 5.4 introduces the concept of traits. In PHP 5.4 version several new features was introduced, one such feature was PHP traits.
PHP traits help us to minimize code duplication in our codebase. Until the concept of traits, PHP uses classical inheritance model in which one class can inherit only one class. But sometimes, it is beneficial to inherit from multiple classes to avoid code duplication. To solve this problem, PHP community introduces the concept of traits.
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.
A Stack is a very important data structure in computer science, It works on the principle of last-in-first-out (LIFO ). The element which inserted last is the first element to be popped. In this tutorial, You will learn about stack data structure and how to implement a stack in PHP.
PHP 7 , the latest version of PHP was already released. It was released on December 3rd, 2015. PHP 7 comes with a number of new features, and the most amazing feature is speed. PHP 7 provides an incredible performance boost to your web applications.
Here is the benchmark of PHP 7. PHP 7 benchmark.
In this tutorial, you’ll learn how to install PHP 7 on Ubuntu.
How to Install PHP, MySql, Apache in Ubuntu
How to access localhost from anywhere using any device.
How to Access Localhost from Anywhere
How many times, you have been working on an application (or an app) and you have designed and completed your application nicely. You have set up everything very nicely on your local system. Now you want to show this work to your client, who is sitting on a remote location. Also, you want to test this application on a different device ( such as mobile, tablets etc). To do these things, either you have to host your application on a public server, or you can use any service which allows to access localhost from anywhere.
Starting from PHP 5.4 , PHP incorporates a feature of a built-in web server. You can take the advantage of PHP built-in web server for development and testing of your PHP applications. It means you don’t need to configure Apache virtual host to run your PHP applications.
How to install composer on Mac OS.
What is Composer?
PHP Composer is a cross-platform dependency manager that allows you to manage package dependency in your project.
In my previous article, I have explained PHP Composer – how to manage package dependency in PHP through composer.
How to Install Composer on Mac OS
Write a program to calculate factorial of a number in PHP. In this tutorial, We are going to write a PHP code to find factorial of a number using iterative as well as recursive approach. Before solving this problem let’s understand what is factorial.
Program to Print Factorial of a Number in PHP