Anonymous functions

Examples: Anonymous function example Anonymous functions, also known as closures, allow the creation of functions which have no specified name. They are most useful as the value of callback parameters, but they have many other uses. <?php echo preg_replace_callback('~-([a-z])~', function ($match) {     return strtoupper($match[1]); }, 'hello-world'); // outputs helloWorld ?> Anonymous function variable assignment example Closures can

posix_getgid

(PHP 4, PHP 5, PHP 7) Return the real group ID of the current process int posix_getgid ( void ) Return the numeric real group ID of the current process. Returns: Returns the real group id, as an integer. Examples: posix_getgid() example This example will print out the real group id, even once the effective group id has bee

imagecolorsforindex

(PHP 4, PHP 5, PHP 7) Get the colors for an index array imagecolorsforindex ( resource $image, int $index ) Gets the color for a specified index. Parameters: image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(). index The color index. Returns: Returns an associa

svn_fs_youngest_rev

(PECL svn >= 0.1.0) Returns the number of the youngest revision in the filesystem int svn_fs_youngest_rev ( resource $fs ) Returns the number of the youngest revision in the filesystem This function is currently not documented; only its argument list is available.

pcntl_sigprocmask

(PHP 5 >= 5.3.0, PHP 7) Sets and retrieves blocked signals bool pcntl_sigprocmask ( int $how, array $set [, array &$oldset ] ) The pcntl_sigprocmask() function adds, removes or sets blocked signals, depending on the how parameter. Parameters: how Sets the behavior of pcntl_sigprocmask(). Possible values: SIG_BLOCK: Add the signals to the currently blocked signals

geoip_record_by_name

(PECL geoip >= 0.2.0) Returns the detailed City information found in the GeoIP Database array geoip_record_by_name ( string $hostname ) The geoip_record_by_name() function will return the record information corresponding to a hostname or an IP address. This function is available for both GeoLite City Edition and commercial GeoIP City Edition. A warning will be issued if the proper database cannot be located. The names

cal_info

(PHP 4 >= 4.1.0, PHP 5, PHP 7) Returns information about a particular calendar array cal_info ([ int $calendar = -1 ] ) cal_info() returns information on the specified calendar. Calendar information is returned as an array containing the elements calname, calsymbol, month, abbrevmonth and maxdaysinmonth. The names of the different calendars which can be used as calendar are as follows: 0 or CAL_GREGORIAN - Gregorian

CairoPsSurface::dscBeginSetup

(PECL cairo >= 0.1.0) The dscBeginSetup purpose public void CairoPsSurface::dscBeginSetup ( void ) The method description goes here. Returns: Description... This function is currently not documented; only its argument list is available. Examples: CairoPsSurface::dscBeginSetup() example

CairoSurface::setFallbackResolution

(PECL cairo >= 0.1.0) The setFallbackResolution purpose public void CairoSurface::setFallbackResolution ( string $x, string $y ) The method description goes here. Parameters: x Description... y Description... Returns: Description... This function is currently not documen

mysqli_stmt::$error_list

(PHP 5 >= 5.4.0, PHP 7) Returns a list of errors from the last statement executed array mysqli_stmt_error_list ( mysqli_stmt $stmt ) Object oriented style array $mysqli_stmt->error_list; Procedural style Returns an array of errors for the most recently invoked statement function that can succeed or fail. Parameters: stmt Procedural style only: A statement identifier