PHP Tutorial

PHP is the abbreviation of Hypertext Pre-Processing which is a famous and mostly used programming language these days. It provides you an opportunity to create a dynamic content for your responsive website with the help of an interactive database. It is famous because its structure, coding and deployment process is very easy and convenient. After … Read more

Categories PHP

Echo/Print in PHP

An echo/print in PHP is the output variable used to display values of your program on screen. An echo is slightly different from print. The major difference is that an echo has a return value of 1 but a print has a return value of 0. An echo is marginally faster or speedy than a … Read more

Categories PHP

String Function in PHP

A string function in PHP includes different string operations like: String Concatenation in PHP A string concatenation in PHP is used to join two strings. And we use a “.” for it. strlen( ) Function in PHP strlen( ) function in PHP is used to return the length of a string. strpos( ) Function in … Read more

Categories PHP

Scope of PHP Variables

The scope of PHP variables are the ranges or part of the code where they are declared and used. There are total three types of the scope of PHP variables which are: Local Scope in PHP A local Scope in PHP is that a variable is only declared and accessed within a function. If you … Read more

Categories PHP

PHP Language Syntax

The script of a PHP Language normally starts with <?php and ends on ?> and its script usually placed anywhere in the document or file. Moreover, your files will save with the extension of .php on your desktop. A PHP Language always contains some PHP scripting and HTML tags. The above tags symbolizes the PHP … Read more

Categories PHP

Requirement for PHP Installation

First you have to find out a web host of PHP. Then, you will require a MySQL support. So, install a web server and after that PHP and MYSQL on your PC. Above we discussed some important things that are most important requirement for PHP installation. XAMPP Software XAMPP Software is a 3 in one … Read more

Categories PHP

PHP Variables

PHP Variables are working like containers to store the important and useful information in it. So, to store our needed information in a memory space is necessary and we use PHP language variables for this purpose. There are some rules for PHP language variables which are given below: A variable of PHP language starts with … Read more

Categories PHP

Constants in PHP

Constants in PHP are just like variables but their value can`t be change once set. It means you have to define the value of constants first and then you cannot change it. A perfect constant name can be start with a letter or underscore. Constants in PHP will automatically be global in the whole program. … Read more

Categories PHP

PHP Multidimensional Array

The array of arrays in PHP is  known as a multidimensional array. The array’s elements can all be arrays, and they can also contain additional sub-arrays. It enables the storage of tabular data in an array. PHP multidimensional arrays can be expressed as a matrix, with row * column. PHP Multidimensional Array Definition

PHP Numeric Array

PHP Numeric Array is an array in which numbers, strings, and any other object can be stored, but their indexes will be represented by numbers. Each element of the array is represented by an index number that begins with 0. PHP Numeric Array Definition There are two ways of defining PHP numeric array: 1. 2. … Read more