geoip_db_avail

(PECL geoip >= 1.0.1) Determine if GeoIP Database is available bool geoip_db_avail ( int $database ) The geoip_db_avail() function returns if the corresponding GeoIP Database is available and can be opened on disk. It does not indicate if the file is a proper database, only if it is readable. Parameters: database The database type as an integer. You can use the vario

Namespaces and dynamic language features

(PHP 5 >= 5.3.0, PHP 7) Examples: Dynamically accessing elements PHP's implementation of namespaces is influenced by its dynamic nature as a programming language. Thus, to convert code like the following example into namespaced code: example1.php: <?php class classname {     function __construct()     {         echo __METHOD__,"\n";     } } function funcname() {     echo __FUNCTIO

XMLReader::moveToAttribute

(PHP 5 >= 5.1.0, PHP 7) Move cursor to a named attribute public bool XMLReader::moveToAttribute ( string $name ) Positions cursor on the named attribute. Parameters: name The name of the attribute. Returns: Returns TRUE on success or FALSE on failure. See also:

pg_num_rows

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Returns the number of rows in a result int pg_num_rows ( resource $result ) pg_num_rows() will return the number of rows in a PostgreSQL result resource. Note: This function used to be called pg_numrows(). Parameters: result PostgreSQL query result resource, returned by pg_query(), pg_query_params() or pg_execute() (among others).

mysqli::stat

(PHP 5, PHP 7) Gets the current system status string mysqli::stat ( void ) Object oriented style Procedural style string mysqli_stat ( mysqli $link ) mysqli_stat() returns a string containing information similar to that provided by the 'mysqladmin status' command. This includes uptime in seconds and the number of running threads, questions, reloads, and open tables. Parameters: link

Spoofchecker::setChecks

(PHP >= 5.4.0, PECL intl >= 2.0.0) Set the checks to run public void Spoofchecker::setChecks ( long $checks ) Parameters: checks Returns: This function is currently not documented; only its argument list is available.

ZipArchive::unchangeAll

(PHP 5 >= 5.2.0, PHP 7, PECL zip >= 1.1.0) Undo all changes done in the archive bool ZipArchive::unchangeAll ( void ) Undo all changes done in the archive. Returns: Returns TRUE on success or FALSE on failure.

SplObjectStorage::getInfo

(PHP 5 >= 5.3.0, PHP 7) Returns the data associated with the current iterator entry public mixed SplObjectStorage::getInfo ( void ) Returns the data, or info, associated with the object pointed by the current iterator position. Returns: The data associated with the current iterator position. Examples: SplObjectStorage::getInfo() exa

EvIo::set

(PECL ev >= 0.2.0) Configures the watcher public void EvIo::set ( mixed $fd , int $events ) Configures the EvIo watcher Parameters: fd The same as for EvIo::__construct() events The same as for EvIo::__construct() Returns: No value is returned.

pspell_save_wordlist

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Save the personal wordlist to a file bool pspell_save_wordlist ( int $dictionary_link ) pspell_save_wordlist() saves the personal wordlist from the current session. The location of files to be saved specified with pspell_config_personal() and (optionally) pspell_config_repl(). Parameters: dictionary_link A dictionary link identifier opene