Browsing articles in "Code 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 : Get number of days in month

string

Number of days in a month This function takes a month/year as input and returns the number of days for the given month/year. It takes leap years into consideration. It takes month and year as parameter, both should be integers.

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.

Pages:123»

Join Us

           

Recommended

Advertisements