Browsing articles tagged with " Snippets"

PHP : Array Functions Tutorial – Part 3

string

This is continuation to Array Functions Tutorial. Previous Articles can be read from here

PHP : Array Functions Tutorial – Part 2

string

This is continuation to Array Functions Tutorial. Previous Articles can be read from here

PHP : Array Functions Tutorial – Part 1

string

Previously I had written articles about array and its functions, but that was limited as I had posted only those functions which are used the most.

Function : Converts GMT time to a localized value

string

Converts GMT time to a localized value This function takes  a Unix timestamp (in GMT) as input, and returns the local value based on the timezone and DST setting submitted.

Function : Converts a local Unix timestamp to GMT

string

Convert Local UNIX Timestamp to GMT This function converts local unix timestamp to GMT time format.  It accepts local unix timestamp as input parameter. This is very simple function made using php time and date functions.

Function : Check if array index is set and whether it has a value.

string

Array Index Set This function lets you determine whether an array index is set and whether it has a value. It takes array item, array and default value as parameters. If the element is empty it returns FALSE or whatever you specify as the default value.

Function: Get Random Element from Array

string

Get Random Element from Array This function takes an array as input and returns a random element. This can be useful when we want to display advertisements or some random sayings of great persons and many more instances like that

Pages:123»

Recommended

Advertisements