recode_string

(PHP 4, PHP 5, PHP 7) Recode a string according to a recode request string recode_string ( string $request, string $string ) Recode the string string according to the recode request request. Parameters: request The desired recode request type string The string to be recoded Returns: Returns the recoded string o

ImagickDraw::setGravity

(PECL imagick 2.0.0) Sets the text placement gravity bool ImagickDraw::setGravity ( int $gravity ) Sets the text placement gravity to use when annotating with text. Parameters: gravity GRAVITY_ constant Returns: No value is returned. This function is currently not documented; only its argument list is availabl

Returning values

Examples: Use of return <?php function square($num) {     return $num * $num; } echo square(4);   // outputs '16'. ?> Returning an array to get multiple values A function can not return multiple values, but similar results can be obtained by returning an array. <?php function small_numbers() {     return array (0, 1, 2); } list ($zero, $one, $two) = small_numbers(); ?> Returning a reference from a function

sybase_pconnect

(PHP 4, PHP 5, PHP 7) Open persistent Sybase connection resource sybase_pconnect ([ string $servername [, string $username [, string $password [, string $charset [, string $appname ]]]]] ) sybase_pconnect() acts very much like sybase_connect() with two major differences. First, when connecting, the function would first try to find a (persistent) link that's already open with the same host, username and password. If one is

openssl_spki_export_challenge

(PHP 5 >= 5.6.0, PHP 7) Exports the challenge assoicated with a signed public key and challenge string openssl_spki_export_challenge ( string &$spkac ) Exports challenge from encoded signed public key and challenge Parameters: spkac Expects a valid signed public key and challenge Returns: Returns the associated challenge string or NULL on

openssl_public_decrypt

(PHP 4 >= 4.0.6, PHP 5, PHP 7) Decrypts data with public key bool openssl_public_decrypt ( string $data, string &$decrypted, mixed $key [, int $padding = OPENSSL_PKCS1_PADDING ] ) openssl_public_decrypt() decrypts data that was previous encrypted via openssl_private_encrypt() and stores the result into decrypted. You can use this function e.g. to check if the message was written by the owner of the private key.

DOMNode::hasAttributes

(PHP 5, PHP 7) Checks if node has attributes public bool DOMNode::hasAttributes ( void ) This method checks if the node has attributes. The tested node has to be an XML_ELEMENT_NODE. Returns: Returns TRUE on success or FALSE on failure. See also: DOMNode::hasChildNodes() -

mcrypt_enc_get_modes_name

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Returns the name of the opened mode string mcrypt_enc_get_modes_name ( resource $td ) This function returns the name of the mode. Parameters: td The encryption descriptor. Returns: Returns the name as a string. Examples: mcrypt_enc_get_modes_name() ex

DOMText::splitText

(PHP 5, PHP 7) Breaks this node into two nodes at the specified offset public DOMText DOMText::splitText ( int $offset ) Breaks this node into two nodes at the specified offset, keeping both in the tree as siblings. After being split, this node will contain all the content up to the offset. If the original node had a parent node, the new node is inserted as the next sibling of the original node. When the offset is equal

EvLoop::__construct

(PECL ev >= 0.2.0) Constructs the event loop object public EvLoop::__construct ([ int $flags [, mixed $data = NULL [, double $io_interval = 0.0 [, double $timeout_interval = 0.0 ]]]] ) Constructs the event loop object. Parameters: flags One of the event loop flags data Custom data associated with the loop.