home / developersection / tag
You haven’t finished your post yet. Are you sure you want to leave and discard your draft?
In our previous section, of inheritance we have seen how derived class (or child class) inherits the function or methods of base class (or parent class). There can be a situation where you want to prevent a class from being inherited.
Type Hinting is a technique that hints the function to accept only given data types. In PHP we can use type hinting for array, object and callable data type.
Objects are inconstant, that means object has capability to change the state of information. In object oriented PHP programming, there can be a situation where you require copies of object.
Method chaining is a technique in which methods are put together one after the other. For example you have a class employee and have three methods like this:
Abstract classes are those classes which cannot be instantiated and require subclasses to provide implementation for the abstract methods or in other words you cannot create object of abstract classes
Static method in PHP is very useful features. Static function and variable breaks a lot of power available to 0bject oriented programming. These metho
The CREATE DATABASE statement is used to create database. (Note: Before creating database you must first connect with database server).Here is an example to create database using PHP:
Exceptions are important to control over error handling Exception handlings are used to change the execution of a code if a specified error occurs.Her
In PHP you can include the content of one file into another file. This will help in creating function, footers header or elements that can be used in several pages.
Error handling is the process of catching error and then taking appropriate action. When you create web application error handling is an important part.
A session is used to store information in variables. These php variables are used to store user information to be used across multiple pages. Unlike a
Here we will look on some of the function of strings:strlen()To get the length of the string.example: $t="hello"; echo strlen($t); Result: 5 str_