PHP Functions

Recent Tutorial

isset vs empty vs is_null

October 4, 2013
PHP has multiple functions used to check PHP variables with respect to their initialized values. These functions are, isset() is to check if a variable is set with value. empty() is to check if a given variable is empty. Difference with isset() is, isset has NULL check enabled. is_null() – It is to check whether […]
This tutorial was added to PHP.

PHP isset()

October 3, 2013
We have seen about several variable functions available in PHP to work with variables. Among them, isset() is one of the widely used function. isset() is used to check whether a given variable is set with a not NULL value. PHP isset() returns TRUE if a given variable is set with any value including empty […]
This tutorial was added to PHP.

PHP Output Buffering

September 10, 2013
In PHP, output buffering feature is used to control program output. Controlling output will be done with respect to time of sending output to the browser, order of output and etc. Normally, each chunk of data specified as PHP printing statements or as HTML content in between PHP script, will be sent to the browser […]
This tutorial was added to PHP.

PHP Variable Functions

August 27, 2013
This article is focusing on PHP functions specifically for handling PHP variables. These functions are used for performing variable related functionalities. And, the following list includes such common functionalities applied on PHP variables. Getting the value of PHP variables PHP Variable type handling. printing functions. Importing/Exporting PHP variables. Other variable functions. Since, we have enough […]
This tutorial was added to PHP.

PHP Sleep

August 23, 2013
Like other languages, PHP sleep() is also used to pause program execution for a particular amount of time. This sleeping time could be controlled by a parameter, sending as an argument to this function. PHP sleep() accepts only one and mandatory argument denoting the period of time, for what, the PHP code execution invoking this […]
This tutorial was added to PHP.

PHP JSON Encode and Decode

August 17, 2013
This article is going to deal with set of PHP operations that are used to encode given data into JSON data structure and to decode JSON data into its original form. We have seen url_encode() and url_decode() to perform same set of these encoding and decoding operations with respect to given URL Similarly, PHP provides […]
This tutorial was added to PHP.

MD5 Vs SHA1 Hashing in PHP

August 2, 2013
Hashing results fingerprint of data provided as an input of hashing functions. We are going to see about two PHP functions that creates hash code that can otherwise called as message digest. These functions are creating hash code using MD5(Message Digest Algorithm) and SHA1(Secured Hashing Algorithm) for creating required fingerprint, and, they are listed below. […]
This tutorial was added to PHP.

PHP function showing IP Address

May 29, 2013
This article covers the available ways to get IP address using PHP script. IP address is unique address for the machines like client, server or proxy. In PHP, we can get IP address in two ways. These are, By accessing $_SERVER global array. By using getenv() function. Both of the above two methods require some […]
This tutorial was added to PHP.

PHP Random Number Generator

May 14, 2013
In this article we are going to see about how to generate random number using set of predefined PHP functions. There are two prime function to deal with random number generation. These are, rand() mt_rand() rand() vs mt_rand() These two functions might have two optional arguments for specifying min and max limit for generating random […]
This tutorial was added to PHP.

PHP URL Encoding Decoding

May 7, 2013
PHP supports encoding and decoding of URL by providing some built-in functions. Encoding is required before sending URL data to query string or to a function which might dynamically work on this URL data. And then, this data will be decoded into its original form, after receiving it in target PHP page or function. Types […]
This tutorial was added to PHP.

PHP Functions

April 19, 2013
Function makes PHP program well understood by separating the code into structured blocks based on the logic and steps involved to execute them. It has some essential purposes, features to be discussed with this article. Purpose of PHP functions: Functions makes code as organized by keeping separate places for each operations. If same set of […]
This tutorial was added to PHP.

Why PHP split() is Deprecated

April 13, 2013
In PHP, split() was used to split a string into an array by the given regex pattern. It performed case sensitive pattern matching on the given string. Since regex parsing has shows poor performance, this function was deprecated. An example code snippet to split string with [– :] pattern is shown below. <?php $str = […]
This tutorial was added to PHP.

↑ Back to Top