PHP7 – Static calls to non-static methods deprecated

Calling non-static methods as static method has been deprecated in PHP7 and my be removed in the future versions. The below example will output: Deprecated: Non-static method foo::bar() should not be called statically […]

PHP7 – Group use Declarations

PHP 7 is improved current PHP namespace implementation by introducing the concept of Group Use. This is the one of the coolest improvement to namespaces in PHP7. Group use Declarations are more readable and makes it easier […]

PHP7 – PHP Constants Containing Arrays

You can define a constant by using the define() function or by using the const keyword outside a class definition as of PHP 5.3.0. Once a constant is defined, it can never be changed or undefined. Only scalar data (Boolean, […]

PHP 7 – PHP 4-Style Constructors are Deprecated

PHP 4 constructors were preserved in PHP 5 alongside the new __construct().PHP 4 constructors are methods that have the same name as the class they are defined in. Now, PHP 4-style constructors are being deprecated in […]

PHP7 – Anonymous Classes

Here I present an example and a short tutorial on anonymous classes in PHP.Anonymous classes are new to PHP which are included in PHP7. An anonymous class is a class without a name. The functionality of the object is no […]

How to create a while loop in php?

PHP while loops execute a block of code while the specified condition is true.In PHP, we have the following while looping statements: while – loops through a block of code as long as the specified condition is true do…while […]

Redirect domain to www on codeigniter ?

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face – we are here to solve your problems.ArjunI am Arjun from Hyderabad (India). […]

How to setup Multi-Environments in WordPress

In this post, I would like to show you how to configure multiple environments in WordPress. By using this technique you can deploy your WordPress application to development, staging, and production environments without […]

How to remove index.php from URL in Yii2

To remove the index.php, create a file called .htaccess at the root/web/ of your YII2 site. You can find out more about .htaccess here, but for our purposes here we just want to use it to hide index.php in our URLs. Not […]

DMCA.com Protection Status