Latest blog tagged on "PHP"

Blogger Walk

Аre yоu wonderіng how to start a blog? Or maybe you have questiοns about it. I'm glad you're here! No technical experience required in this post, I'll...

 466 View(s)

Login and Logout in PHP

Sometimes beginners get confused how to login and logout. So I thought it would be helpful if I share some basic steps how to create login and logout with session. Followings are the topics which we will learn in this part of section:...

PHP
 2457 View(s)

Final class and method in PHP

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....

PHP
 1446 View(s)

Type Hinting in PHP

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....

PHP
 1455 View(s)

Object Cloning in PHP

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....

PHP
 2971 View(s)

Method Chaining in PHP

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:...

PHP
 2184 View(s)

Abstract classes and Interface in PHP

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...

PHP
 1754 View(s)

Static Method and variable

Static method in PHP is very useful features. Static function and variable breaks a lot of power available to 0bject oriented programming. These metho...

PHP
 1649 View(s)

How to create database in MySQL using PHP?

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:...

PHP
 1424 View(s)

Exception Handling in 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...

PHP
 1799 View(s)

File Inclusion in PHP

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....

PHP
 1096 View(s)

Error Handling in PHP

Error handling is the process of catching error and then taking appropriate action. When you create web application error handling is an important part....

PHP
 1104 View(s)

Session in PHP

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...

PHP
 1109 View(s)

PHP String Function

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_...

PHP
 1099 View(s)

File Upload in PHP

$_FILES is a superglobal variable in PHP. It consists of 5 variable:  $_FILES[‘file’][‘tmp_name’] – the uploaded file in the temporary directory on t...

PHP
 1203 View(s)

File Handling in PHP

fopen() function is used to open a file, but in PHP same function is used to create a file. If you use fopen() on a file that does not exists, it will create that file. It has two parameter...

PHP
 1450 View(s)

What is a cookie?

A Cookie is a text file that the server embeds on the user’s computer. A cookie is used to identify a user. These cookies are also used for tracking p...

PHP
 1160 View(s)