Class constant in PHP

Class constant in PHP, is a constant declared inside class which value cannot be changed once assigned. Syntax Example Access…

Class PHP

Class is a user defined data type. It is a template or blueprint, which holds data members (properties) and member…

OOP PHP

OOP stands for object oriented programming. To implement OOP in PHP, class and its objects are used, and objects are…

Exception handling PHP

Exception handling in PHP, is used to deal with runtime errors, these runtime errors are called exception. These error crash…

File handling PHP

File handling in PHP, allows to work with files and directories and its related operations like to create, write, append,…

Cookies PHP

Cookies in PHP, is a client management technique and are text file used to store small amount of data on…

Session PHP

Session is used to store (hold) and share (use) information or data between webpages of a website. Session is one…

Date and Time PHP

In PHP, date() function allows to get date, time or both in a specified format. Syntax format Get date time…

Regular expression PHP

Regular expression also called RegEx, is a pattern of characters used to find, replace, split text from a given string…

SuperGobals PHP

PHP provides 9 Super-globals, which are accessible, anywhere in the entire PHP script. Each Super-global is a built-in variable, and…