curl_share_setopt

(PHP 5 >= 5.5.0, PHP 7) Set an option for a cURL share handle. bool curl_share_setopt ( resource $sh, int $option, string $value ) Sets an option on the given cURL share handle. Parameters: sh A cURL share handle returned by curl_share_init(). option Option Description CURLSHOPT_SHARE Specifies a type of data that should be shared.

Phar::setSignatureAlgorithm

(PHP >= 5.3.0, PECL phar >= 1.1.0) set the signature algorithm for a phar and apply it. public void Phar::setSignatureAlgorithm ( int $sigtype [, string $privatekey ] ) Note: This method requires the php.ini setting phar.readonly to be set to 0 in order to work for Phar objects. Otherwise, a PharException will be thrown. set the signature algorithm for a phar and apply it. The signature algorithm must be one of Pha

newt_open_window

(PECL newt >= 0.1) Open a window of the specified size and position int newt_open_window ( int $left, int $top, int $width, int $height [, string $title ] ) Open a window of the specified size and position. Parameters: left Location of the upper left-hand corner of the window (column number) top Location of the upper left-hand corner

ReflectionMethod::getPrototype

(PHP 5, PHP 7) Gets the method prototype (if there is one). public ReflectionMethod ReflectionMethod::getPrototype ( void ) Returns the methods prototype. Returns: A ReflectionMethod instance of the method prototype. Exception: A ReflectionException exception is thrown if the method does not have a prototype. Examples:

bcscale

(PHP 4, PHP 5, PHP 7) Set default scale parameter for all bc math functions bool bcscale ( int $scale ) Sets the default scale parameter for all subsequent calls to bc math functions that do not explicitly specify a scale parameter. Parameters: scale The scale factor. Returns: Returns TRUE on success or FALSE on failure.

DirectoryIterator::getSize

(PHP 5, PHP 7) Get size of current DirectoryIterator item public int DirectoryIterator::getSize ( void ) Get the file size for the current DirectoryIterator item. Returns: Returns the size of the file, in bytes. Examples: DirectoryIterator::getSize() example <?php $iterator = new DirectoryIterator(dirname(__FILE__)); f

APCUIterator::getTotalHits

(PECL apcu >= 5.0.0) Get total cache hits public int APCUIterator::getTotalHits ( void ) Gets the total number of cache hits. Returns: The number of hits on success, or FALSE on failure. This function is currently not documented; only its argument list is available. See also:

UConverter::getAliases

(PHP 5.5.0, PHP 7, PECL >= 3.0.0a1) Get the aliases of the given name public static array UConverter::getAliases ([ string $name ] ) Parameters: name Returns: This function is currently not documented; only its argument list is available.

PDO::rollBack

(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0) Rolls back a transaction public bool PDO::rollBack ( void ) Rolls back the current transaction, as initiated by PDO::beginTransaction(). A PDOException will be thrown if no transaction is active. If the database was set to autocommit mode, this function will restore autocommit mode after it has rolled back the transaction. Some databases, including MySQL, automatically i

Anonymous (class)es

Examples: Support for anonymous classes was added in PHP 7. Anonymous classes are useful when simple, one-off objects need to be created. <?php // Pre PHP 7 code class Logger {     public function log($msg)     {         echo $msg;     } } $util->setLogger(new Logger()); // PHP 7+ code $util->setLogger(new class {     public function log($msg)     {         echo $msg;     } }); The above example will output: They can pass argu