PHP Basics

Recent Tutorial

PHP Namespace

September 5, 2013
In file system, we have directories or folders to keep related files. Similarly, PHP namespaces are used to have related code blocks of a PHP program that are reusable, like, classes, functions, interfaces under its reference. And, PHP namespaces can also capable of containing constants. Operations Performed using PHP NameSpaces With PHP namespaces, we can […]
This tutorial was added to PHP.

foreach in PHP

August 20, 2013
In PHP, foreach statement is used to iterate over collection of data, like PHP arrays. As per the name of this construct, it will keep on continue with the loop to traverse given input array for each of its element, without any condition. We have slightly touch about how this is working in PHP, while […]
This tutorial was added to PHP.

PHP If Else Statement

July 25, 2013
If and Else statements are a kind of PHP conditional statements, since it applies one or more conditions upon a block of code, based on which the block is taken or non-taken for execution. These statements handle execution of a give PHP code based on conditions associated with it, like, other conditional statements, coming under […]
This tutorial was added to PHP.

PHP unlink() Vs unset()

July 14, 2013
These two PHP functions are identical on performing some undo operations, but differs in the type of data on which they are applied to perform such undo functionalities. In PHP, unlink() is acting as the drop operation which will completely delete files, where as, unset() is used to delete the file content for emptying it. […]
This tutorial was added to PHP.

PHP Delimiters

June 26, 2013
PHP delimiters are nothing but the open close tags to enclose PHP script. PHP code can be parsed if and only if it is enclosed with these delimiters. There are various set of delimiters to recognize PHP code. These are as listed below. <?php … ?> – It is most probably used delimiters and also […]
This tutorial was added to PHP.

PHP Redirect

May 28, 2013
PHP redirect mechanism is used to navigate the user from one page to another without clicking any hipherlinks. This will be helpful in such circumstances where the redirect should be done in background. For example, when the user is accessing payment gatway, redirect should automatically be taken place to notify URL using PHP script. PHP […]
This tutorial was added to PHP.

PHP Constants

April 26, 2013
Like other programming languages, PHP allows to define constants using define() function. Once a constant is defined, we can not change or revert it. We should store a value as constant which is never ever needed to be changed. For example, the value of pi can be defined as a constant as shown in the […]
This tutorial was added to PHP.

PHP Loops

April 23, 2013
Loops are some kind of flow control statements in PHP. It supports to execute some set of statements recursively, based upon the conditional statement provided. There are various type of loop statements in PHP. while do..while for Each of the above statements are going to perform same function but varied with the way of it’s […]
This tutorial was added to PHP.

PHP include() Vs require()

April 22, 2013
PHP control structure comprises with several type of statements. In this article, we are going to compare the include() and require() statements and their _once usage. These statements are used to add the script from external file. So the PHP files are embedded into one another in various ways based on the the following PHP […]
This tutorial was added to PHP.

PHP Print Statements

April 18, 2013
In PHP there are various types of print statements by the use of language constructs and functions. These statements are varied based on the arguments they have or by the way of printing text to the browser. The following points deal with the different methods in showing output from PHP program. echo() – This is […]
This tutorial was added to PHP.

PHP Comments

April 13, 2013
Comments on source code will be useful for denoting the details the code logic. For an example, if we define a function in our program, we should add comment lines to state about the parameters passed to the function, what the function is doing and what it returns. These comment lines will be useful to […]
This tutorial was added to PHP.

PHP Hello World

April 11, 2013
I am happily starting my PHP blog. Hope I will add some value to the PHP community. Following the tradition, let me start with the Hello World program in PHP. <?php echo "Hello World!"; ?>
This tutorial was added to PHP.

↑ Back to Top