Recent Posts

Set Execution Time Limit in PHP

In PHP, the default time for executing a program is 30 seconds. This will be set in php.ini file and the directive corresponding to this configuration setting is named as max_execution_time. The value of this directive is expected to be in…
Read More...

What is php.ini File

While installing PHP, this file is provided with PHP installation settings. For that, it includes set of directives provided with respective values. These directives are of two types based on the values they have. These are, Value…
Read More...

PHP Namespace Example

In the 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…
Read More...

php unlink vs unset

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…
Read More...

foreach loop in php

In PHP, foreach statement is used to iterate over a 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…
Read More...

PHP If Else Statement Example

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…
Read More...

PHP Delimiters Example

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.…
Read More...

php redirect example code

PHP redirect mechanism is used to navigate the user from one page to another without clicking any hyperlinks. This will be helpful in such circumstances where the redirect should be done in the background. For example, when the user is…
Read More...

PHP Constants Example

Like other programming languages, PHP allows defining constants using the define() function. Once a constant is defined, we can not change or revert it. We should store a value as a constant which is never ever needed to be changed. For…
Read More...

php loops tutorial

Loops are used to run the same lines of code for multiple times. If we want to execute same code multiple times then we can put it into a loop block to avoid code repetition. Loop structure includes three sections. These are,…
Read More...