When we want to insert element in an array then we can use array_push() function. php array_push() function insert one or more elements to the
Category: Php
Laravel: Specified key was too long error
This Error ‘Specified key was too long error’ will come when Laravel migrate artisan will execute because of mysql version. For fix this, We need
Php Oop Access Modifiers
In Php, we use access modifiers with method or function or variables. Access modifiers control where method and properties will be accessible. Access modifiers are
Final keyword in PHP
In Php we can use final keyword with Classes and Methods. 1. Final Classes Prevent inheritance 2. Final Methods Prevent Method Overriding Final Classes:
Static Keyword In PHP
Here we discuss use of static keyword in php oops. In php we can use static keyword with properties and methods. When we declared any
Abstraction in php
Abstract Classes in PHP Abstract classes must have at least one abstract method. In php we can make class abstract using abstract keyword. All Child
Inheritance in php
In inheritance , when a class drives from another class. Child class inherit parent class using extends keyword in child class, means that child class
Interface in php
In interface, we are using interface keyword in place of class keyword. Interface have methods without implementations which means that methods are abstract methods. All
Namespaces in php
Namespace concept is very old but it introduced in php very lately. In php 5.3, namespace concept was added. Namespace was came for removing same