strpos

(PHP 4, PHP 5, PHP 7) Find the position of the first occurrence of a substring in a string mixed strpos ( string $haystack, mixed $needle [, int $offset = 0 ] ) Find the numeric position of the first occurrence of needle in the haystack string. Parameters: haystack The string to search in. needle If needle is not a string, it is conver

SimpleXMLElement::__construct

(PHP 5 >= 5.0.1, PHP 7) Creates a new SimpleXMLElement object final public SimpleXMLElement::__construct ( string $data [, int $options = 0 [, bool $data_is_url = false [, string $ns = "" [, bool $is_prefix = false ]]]] ) Creates a new SimpleXMLElement object. Parameters: data A well-formed XML string or the path or URL to an XML document if data_is_url is TRUE.

yaz_record

(PHP 4 >= 4.0.1, PECL yaz >= 0.9.0) Returns a record string yaz_record ( resource $id, int $pos, string $type ) The yaz_record() function inspects a record in the current result set at the position specified by parameter pos. Parameters: id The connection resource returned by yaz_connect(). pos The record position. Records positio

Phar::setStub

(PHP >= 5.3.0, PECL phar >= 1.0.0) Used to set the PHP loader or bootstrap stub of a Phar archive public bool Phar::setStub ( string $stub [, int $len = -1 ] ) 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. This method is used to add a PHP bootstrap loader stub to a new Phar archive, or to replace the loader s

Object Iteration

Examples: Simple Object Iteration PHP 5 provides a way for objects to be defined so it is possible to iterate through a list of items, with, for example a foreach statement. By default, all visible properties will be used for the iteration. <?php class MyClass {     public $var1 = 'value 1';     public $var2 = 'value 2';     public $var3 = 'value 3';     protected $protected = 'protected var';     private   $private   = 'private var';     function iterateVisibl

Phar::compress

(PHP >= 5.3.0, PECL phar >= 2.0.0) Compresses the entire Phar archive using Gzip or Bzip2 compression public object Phar::compress ( int $compression [, string $extension ] ) 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. For tar-based and phar-based phar archives, this method compresses the entire archive usin

get_browser

(PHP 4, PHP 5, PHP 7) Tells what the user's browser is capable of mixed get_browser ([ string $user_agent [, bool $return_array = false ]] ) Attempts to determine the capabilities of the user's browser, by looking up the browser's information in the browscap.ini file. Parameters: user_agent The User Agent to be analyzed. By default, the value of HTTP User-Agent header is

simplexml_load_string

(PHP 5, PHP 7) Interprets a string of XML into an object SimpleXMLElement simplexml_load_string ( string $data [, string $class_name = "SimpleXMLElement" [, int $options = 0 [, string $ns = "" [, bool $is_prefix = false ]]]] ) Takes a well-formed XML string and returns it as an object. Parameters: data A well-formed XML string class_name

udm_set_agent_param

(PHP 4 >= 4.0.5, PHP 5 <= 5.0.5, PECL mnogosearch >= 1.0.0) Set mnoGoSearch agent session parameters bool udm_set_agent_param ( resource $agent, int $var, string $val ) Defines mnoGoSearch session parameters. Parameters: agent A link to Agent, received after call to udm_alloc_agent(). var The following parameters and their valu

db2_set_option

(PECL ibm_db2 >= 1.0.0) Set options for connection or statement resources bool db2_set_option ( resource $resource, array $options, int $type ) Sets options for a statement resource or a connection resource. You cannot set options for result set resources. Parameters: resource A valid statement resource as returned from db2_prepare() or a valid connection resource as r