date_parse in PHP

Syntax of date_parse in PHP array date_parse(string time) Converts an English description of a time and date into an array describing that time and date. Returns false if the value could not be converted into a valid date. The returned array contains the same values as returned from date_parse_from_format(). Example of date_parse Array ( [year] … Read more

date in PHP

Syntax of date in PHP string date(string format[, int timestamp]) Formats a time and date according to the format string provided in the first parameter. If the second parameter is not specified, the current time and date is used. The following characters are recognized in the format string: a “am” or “pm”A “AM” or “PM”B … Read more

current in PHP

Syntax of current in PHP mixed current(array array) Returns the value of the element to which the internal pointer is set. The first time that current() is called, or when current() is called after reset, the pointer is set to the first element in the array

crypt in PHP

Syntax of crypt in PHP string crypt(string string[, string salt]) Encrypts string using the DES encryption algorithm seeded with the two-character salt value salt. If salt is not supplied, a random salt value is generated the first time crypt() is called in a script; this value is used on subsequent calls to crypt(). Returns the … Read more

create_function in PHP

Syntax of create_function string create_function(string arguments, string code) Creates an anonymous function with the given arguments and code; returns a generated name for the function. Such anonymous functions (also called lambda functions) are useful for short term callback functions, such as when using usort() Example of create_function

count_chars in PHP

Syntax of count_chars in PHP mixed count_chars(string string[, int mode]) Returns the number of occurrences of each byte value from 0–255 in string; mode determines the form of the result. The possible values of mode are: 0 (default) Returns an associative array with each byte value as a key and the frequency of that byte … Read more

count in PHP

Syntax of count in PHP int count(mixed value[, int mode]) Returns the number of elements in the value; for arrays or objects, this is the number of elements; for any other value, this is 1. If the parameter is a variable and the variable is not set, 0 is returned. If mode is set and … Read more