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 a value. empty() is to check if a given variable is empty. The difference with isset() is, isset has NULL check enabled. is_null() – It is to […]
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 to any value including the […]
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, the 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 […]
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 a 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 the same set of these encoding and decoding operations with respect to given URL Similarly, […]
This tutorial was added to PHP.

MD5 Vs SHA1 Hashing in PHP

August 2, 2013
Hashing results in fingerprint of data provided as an input to hashing functions. We are going to see about two PHP functions that create hash code that can otherwise call as a 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 […]
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. The ip address is the unique address for the machines like a client, server or proxy. In PHP, we can get an IP address in two ways. These are, By accessing the $_SERVER global array. By using getenv() function. Both of the […]
This tutorial was added to PHP.

PHP Random Number Generator

May 14, 2013
In this article, we are going to see how to generate a random number using a set of predefined PHP functions. There is two prime functions 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 […]
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
The 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 in this article. The purpose of PHP functions: Functions make code as organized by keeping separate places for each operation. If the […]
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 the string with [– :] pattern is shown below. <?php $str […]
This tutorial was added to PHP.

↑ Back to Top