define in PHP

Syntax of define in PHP bool define(string name, mixed value[, int case_insensitive]) Defines a constant named name and sets its value to value. If case_insensitive is set and is true, the operation fails if a constant with the same name, compared case insensitively, is previously defined. Otherwise, the check for existing constants is done case … Read more

decoct in PHP

Syntax of decoct string decoct(int decimal) Converts decimal to an octal (base-8) representation of it. Up to a 32-bit number, or 2,147,483,647 decimal (017777777777 octal), can be converted Example of decoct in PHP 17 410

dechex in PHP

Syntax of dechex in PHP string dechex(int decimal) Converts decimal to a hexadecimal (base-16) representation of it. Up to a 32-bit number, or 2,147,483,647 decimal (0x7FFFFFFF hexadecimal), can be converted Example of dechex in PHP a 2f

decbin in PHP

Syntax of decbin in PHP string decbin(int decimal) Converts the provided decimal value to a binary representation of it. Up to a 32-bit number, or 2,147,483,647 decimal, can be converted Example of decbin in PHP 1100 11010

debug_print_backtrace in PHP

Syntax of debug_print_backtrace void debug_print_backtrace() Prints the current debug backtrace (see debug_backtrace) to the client Example of debug_print_backtrace #0 c() called at [/tmp/include.php:10] #1 b() called at [/tmp/include.php:6] #2 a() called at [/tmp/include.php:17] #3 include(/tmp/include.php) called at [/tmp/test.php:3]

debug_backtrace in PHP

Syntax of debug_backtrace array debug_backtrace([ int options [, int limit ]]) Returns an array of associative arrays containing a backtrace of where PHP is currently executing. One element is included per function or file include, with the following elements function If in a function, the function’s name as a stringline The line number within the … Read more

date_sunset in PHP

Syntax of date_sunset mixed date_sunset(int timestamp[, int format[, float latitude[, float longitude[, float zenith[, float gmt_offset]]]]]) Returns the time of the sunset for the day in timestamp; false on failure. The format parameter determines the format the time is returned as (with a default of SUNFUNCS_RET_STRING), while the latitude, longitude, zenith, and gmt_offset parameters provide … Read more

date_sunrise in PHP

Syntax of date_sunrise in PHP mixed date_sunrise(int timestamp[, int format[, float latitude[, float longitude[, float zenith[, float gmt_offset]]]]]) Returns the time of the sunrise for the day in timestamp; false on failure. The format parameter determines the format the time is returned as (with a default of SUNFUNCS_RET_STRING), while the latitude, longitude, zenith, and gmt_offset … Read more

date_parse_from_format in PHP

Syntax of date_parse_from_format array date_parse_from_format(string format, string time) Parses time into an associative array representing a date. The string time is given in the format specified by format, using the same character codes as described in date(). The returned array contains the following entries: year Yearmonth Monthday Day of the monthhour Hoursminute Minutessecond Secondsfraction Fractions … Read more