# php_manual

id: sodium_crypto_box_keypair
type: function
doc:
<comment>Description:</comment>
  Randomly generate a secret key and a corresponding public key
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_box_keypair_from_secretkey_and_publickey
type: function
doc:
<comment>Description:</comment>
  Description
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$secret_key</strong>  
  <info>string</info>  <strong>$public_key</strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_box_open
type: function
doc:
<comment>Description:</comment>
  Verify and decrypt a ciphertext
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$ciphertext</strong>  
  <info>string</info>  <strong>$nonce     </strong>  
  <info>string</info>  <strong>$key_pair  </strong>  

<comment>Return:</comment>
  <info>stringfalse</info>  


id: sodium_crypto_box_publickey
type: function
doc:
<comment>Description:</comment>
  Description
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$key_pair</strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_box_publickey_from_secretkey
type: function
doc:
<comment>Description:</comment>
  Description
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$secret_key</strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_box_seal
type: function
doc:
<comment>Description:</comment>
  Encrypt a message
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$message </strong>  
  <info>string</info>  <strong>$key_pair</strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_box_seal_open
type: function
doc:
<comment>Description:</comment>
  Decrypt the ciphertext
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$ciphertext</strong>  
  <info>string</info>  <strong>$key_pair  </strong>  

<comment>Return:</comment>
  <info>stringfalse</info>  


id: sodium_crypto_box_seed_keypair
type: function
doc:
<comment>Description:</comment>
  Deterministically derive the key pair from a single key
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$seed</strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_generichash
type: function
doc:
<comment>Description:</comment>
  Get a hash of the message
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$message</strong>  
  <info>string</info>  <strong>$key    </strong>  
  <info>int   </info>  <strong>$length </strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_generichash_final
type: function
doc:
<comment>Description:</comment>
  Complete the hash
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$state </strong>  
  <info>int   </info>  <strong>$length</strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_generichash_init
type: function
doc:
<comment>Description:</comment>
  Initialize a hash
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$key   </strong>  
  <info>int   </info>  <strong>$length</strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_generichash_update
type: function
doc:
<comment>Description:</comment>
  Add message to a hash
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$state  </strong>  
  <info>string</info>  <strong>$message</strong>  

<comment>Return:</comment>
  <info>bool</info>  


id: sodium_crypto_kdf_derive_from_key
type: function
doc:
<comment>Description:</comment>
  Derive a subkey
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>int   </info>  <strong>$subkey_length</strong>  
  <info>int   </info>  <strong>$subkey_id    </strong>  
  <info>string</info>  <strong>$context      </strong>  
  <info>string</info>  <strong>$key          </strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_kx_client_session_keys
type: function
doc:
<comment>Description:</comment>
  Description
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$client_key_pair</strong>  
  <info>string</info>  <strong>$server_key     </strong>  

<comment>Return:</comment>
  <info>array</info>  


id: sodium_crypto_kx_keypair
type: function
doc:
<comment>Description:</comment>
  Creates a new sodium keypair
  
  Create a new sodium keypair consisting of the secret key (32 bytes) followed by the public key (32
  bytes). The keys can be retrieved by calling <strong>sodium_crypto_kx_secretkey()</strong> and
  <strong>sodium_crypto_kx_publickey()</strong>, respectively.

<comment>Return:</comment>
  <info>string</info>  Returns the new keypair on success; throws an exception otherwise.


id: sodium_crypto_kx_seed_keypair
type: function
doc:
<comment>Description:</comment>
  Description
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$seed</strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_kx_server_session_keys
type: function
doc:
<comment>Description:</comment>
  Description
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$server_key_pair</strong>  
  <info>string</info>  <strong>$client_key     </strong>  

<comment>Return:</comment>
  <info>array</info>  


id: sodium_crypto_pwhash
type: function
doc:
<comment>Description:</comment>
  Derive a key from a password
  
  This function provides low-level access to libsodium's crypto_pwhash key derivation function.
  Unless you have specific reason to use this function, you should use <strong>sodium_crypto_pwhash_str()</strong> or
  <strong>password_hash()</strong> functions instead.

<comment>Param:</comment>
  <info>int   </info>  <strong>$length  </strong>  <info>int</info>; The length of the password hash to generate, in bytes.
  <info>string</info>  <strong>$password</strong>  <info>string</info>; The password to generate a hash for.
  <info>string</info>  <strong>$salt    </strong>  <info>string</info> A salt to add to the password before hashing. The salt should be
                     unpredictable, ideally generated from a good random mumber source such as
                     <strong>random_bytes()</strong>, and have a length of at least <info>SODIUM_CRYPTO_PWHASH_SALTBYTES</info>
                     bytes.
  <info>int   </info>  <strong>$opslimit</strong>  Represents a maximum amount of computations to perform. Raising this number
                     will make the function require more CPU cycles to compute a key. There are some
                     constants available to set the operations limit to appropriate values depending
                     on intended use, in order of strength:
                     <info>SODIUM_CRYPTO_PWHASH_OPSLIMIT_INTERACTIVE</info>,
                     <info>SODIUM_CRYPTO_PWHASH_OPSLIMIT_MODERATE</info> and
                     <info>SODIUM_CRYPTO_PWHASH_OPSLIMIT_SENSITIVE</info>.
  <info>int   </info>  <strong>$memlimit</strong>  The maximum amount of RAM that the function will use, in bytes. There are
                     constants to help you choose an appropriate value, in order of size:
                     <info>SODIUM_CRYPTO_PWHASH_MEMLIMIT_INTERACTIVE</info>,
                     <info>SODIUM_CRYPTO_PWHASH_MEMLIMIT_MODERATE</info>, and
                     <info>SODIUM_CRYPTO_PWHASH_MEMLIMIT_SENSITIVE</info>. Typically these should be paired with
                     the matching <strong>$opslimit</strong> values.
  <info>int   </info>  <strong>$algo    </strong>  <info>int</info> A number indicating the hash algorithm to use. By default
                     <info>SODIUM_CRYPTO_PWHASH_ALG_DEFAULT</info> (the currently recommended algorithm, which
                     can change from one version of libsodium to another), or explicitly using
                     <info>SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13</info>, representing the Argon2id algorithm
                     version 1.3.

<comment>Return:</comment>
  <info>string</info>  Returns the derived key. The return value is a binary string of the hash, not an
          ASCII-encoded representation, and does not contain additional information about the
          parameters used to create the hash, so you will need to keep that information if you are
          ever going to verify the password in future. Use <strong>sodium_crypto_pwhash_str()</strong> to avoid
          needing to do all that.


id: sodium_crypto_pwhash_scryptsalsa208sha256
type: function
doc:
<comment>Description:</comment>
  Derives a key from a password
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>int   </info>  <strong>$length  </strong>  
  <info>string</info>  <strong>$password</strong>  
  <info>string</info>  <strong>$salt    </strong>  
  <info>int   </info>  <strong>$opslimit</strong>  
  <info>int   </info>  <strong>$memlimit</strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_pwhash_scryptsalsa208sha256_str
type: function
doc:
<comment>Description:</comment>
  Get an ASCII encoded hash
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$password</strong>  
  <info>int   </info>  <strong>$opslimit</strong>  
  <info>int   </info>  <strong>$memlimit</strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_pwhash_scryptsalsa208sha256_str_verify
type: function
doc:
<comment>Description:</comment>
  Verify that the password is a valid password verification string
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$hash    </strong>  
  <info>string</info>  <strong>$password</strong>  

<comment>Return:</comment>
  <info>bool</info>  


id: sodium_crypto_pwhash_str
type: function
doc:
<comment>Description:</comment>
  Get an ASCII-encoded hash
  
  Uses a CPU- and memory-hard hash algorithm along with a randomly-generated salt, and memory and
  CPU limits to generate an ASCII-encoded hash suitable for password storage.

<comment>Param:</comment>
  <info>string</info>  <strong>$password</strong>  <info>string</info>; The password to generate a hash for.
  <info>int   </info>  <strong>$opslimit</strong>  Represents a maximum amount of computations to perform. Raising this number
                     will make the function require more CPU cycles to compute a key. There are
                     constants available to set the operations limit to appropriate values depending
                     on intended use, in order of strength:
                     <info>SODIUM_CRYPTO_PWHASH_OPSLIMIT_INTERACTIVE</info>,
                     <info>SODIUM_CRYPTO_PWHASH_OPSLIMIT_MODERATE</info> and
                     <info>SODIUM_CRYPTO_PWHASH_OPSLIMIT_SENSITIVE</info>.
  <info>int   </info>  <strong>$memlimit</strong>  The maximum amount of RAM that the function will use, in bytes. There are
                     constants to help you choose an appropriate value, in order of size:
                     <info>SODIUM_CRYPTO_PWHASH_MEMLIMIT_INTERACTIVE</info>,
                     <info>SODIUM_CRYPTO_PWHASH_MEMLIMIT_MODERATE</info>, and
                     <info>SODIUM_CRYPTO_PWHASH_MEMLIMIT_SENSITIVE</info>. Typically these should be paired with
                     the matching opslimit values.

<comment>Return:</comment>
  <info>string</info>  Returns the hashed password.
          
          In order to produce the same password hash from the same password, the same values for
          <strong>$opslimit</strong> and <strong>$memlimit</strong> must be used. These are embedded within the generated hash, so
          everything that's needed to verify the hash is included. This allows the
          <strong>sodium_crypto_pwhash_str_verify()</strong> function to verify the hash without needing separate
          storage for the other parameters.

<comment>See Also:</comment>
   * <strong>sodium_crypto_pwhash_str_verify()</strong>
   * <strong>sodium_crypto_pwhash()</strong>
   * <strong>password_hash()</strong>
   * <strong>password_verify()</strong>
   * Libsodium Argon2 docs


id: sodium_crypto_pwhash_str_needs_rehash
type: function
doc:
<comment>Description:</comment>
  Description
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$password</strong>  
  <info>int   </info>  <strong>$opslimit</strong>  
  <info>int   </info>  <strong>$memlimit</strong>  

<comment>Return:</comment>
  <info>bool</info>  


id: sodium_crypto_pwhash_str_verify
type: function
doc:
<comment>Description:</comment>
  Verifies that a password matches a hash
  
  Checks that a password hash created using <strong>sodium_crypto_pwhash_str()</strong> matches a given plain-text
  password. Note that the parameters are in the opposite order to the same parameters in the similar
  <strong>password_hash()</strong> function.

<comment>Param:</comment>
  <info>string</info>  <strong>$hash    </strong>  O valoare de dispersie creată cu
                     <strong>password_hash()</strong>.
  <info>string</info>  <strong>$password</strong>  The user's password.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if the password and hash match, or <info>false</info> otherwise.

<comment>See Also:</comment>
   * <strong>sodium_crypto_pwhash_str()</strong>
   * <strong>password_hash()</strong>
   * <strong>password_verify()</strong>


id: sodium_crypto_scalarmult
type: function
doc:
<comment>Description:</comment>
  Compute a shared secret given a user's secret key and another user's public key
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$n</strong>  
  <info>string</info>  <strong>$p</strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_scalarmult_base
type: function
doc:
<comment>Description:</comment>
  Pseudonim pentru sodium_crypto_box_publickey_from_secretkey
  
  Această funcție este pseudonim pentru:  <strong>sodium_crypto_box_publickey_from_secretkey()</strong>.


id: sodium_crypto_secretbox
type: function
doc:
<comment>Description:</comment>
  Encrypt a message
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$message</strong>  
  <info>string</info>  <strong>$nonce  </strong>  
  <info>string</info>  <strong>$key    </strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_secretbox_open
type: function
doc:
<comment>Description:</comment>
  Verify and decrypt a ciphertext
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$ciphertext</strong>  
  <info>string</info>  <strong>$nonce     </strong>  
  <info>string</info>  <strong>$key       </strong>  

<comment>Return:</comment>
  <info>stringfalse</info>  


id: sodium_crypto_secretstream_xchacha20poly1305_init_pull
type: function
doc:
<comment>Description:</comment>
  Description
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$header</strong>  
  <info>string</info>  <strong>$key   </strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_secretstream_xchacha20poly1305_init_push
type: function
doc:
<comment>Description:</comment>
  Description
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$key</strong>  

<comment>Return:</comment>
  <info>array</info>  


id: sodium_crypto_secretstream_xchacha20poly1305_pull
type: function
doc:
<comment>Description:</comment>
  Description
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$state          </strong>  
  <info>string</info>  <strong>$ciphertext     </strong>  
  <info>string</info>  <strong>$additional_data</strong>  

<comment>Return:</comment>
  <info>arrayfalse</info>  


id: sodium_crypto_secretstream_xchacha20poly1305_push
type: function
doc:
<comment>Description:</comment>
  Description
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$state          </strong>  
  <info>string</info>  <strong>$message        </strong>  
  <info>string</info>  <strong>$additional_data</strong>  
  <info>int   </info>  <strong>$tag            </strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_secretstream_xchacha20poly1305_rekey
type: function
doc:
<comment>Description:</comment>
  Description
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$state</strong>  

<comment>Return:</comment>
  <info>void</info>  


id: sodium_crypto_shorthash
type: function
doc:
<comment>Description:</comment>
  Compute a fixed-size fingerprint for the message
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$message</strong>  
  <info>string</info>  <strong>$key    </strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_sign
type: function
doc:
<comment>Description:</comment>
  Sign a message
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$message   </strong>  
  <info>string</info>  <strong>$secret_key</strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_sign_detached
type: function
doc:
<comment>Description:</comment>
  Sign the message
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$message   </strong>  
  <info>string</info>  <strong>$secret_key</strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_sign_ed25519_pk_to_curve25519
type: function
doc:
<comment>Description:</comment>
  Convert an Ed25519 public key to a Curve25519 public key
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$public_key</strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_sign_ed25519_sk_to_curve25519
type: function
doc:
<comment>Description:</comment>
  Convert an Ed25519 secret key to a Curve25519 secret key
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$secret_key</strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_sign_open
type: function
doc:
<comment>Description:</comment>
  Check that the signed message has a valid signature
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$ciphertext</strong>  
  <info>string</info>  <strong>$public_key</strong>  

<comment>Return:</comment>
  <info>stringfalse</info>  


id: sodium_crypto_sign_publickey_from_secretkey
type: function
doc:
<comment>Description:</comment>
  Extract the public key from the secret key
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$secret_key</strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_crypto_sign_verify_detached
type: function
doc:
<comment>Description:</comment>
  Verify signature for the message
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$signature </strong>  
  <info>string</info>  <strong>$message   </strong>  
  <info>string</info>  <strong>$public_key</strong>  

<comment>Return:</comment>
  <info>bool</info>  


id: sodium_crypto_stream
type: function
doc:
<comment>Description:</comment>
  Generate a deterministic sequence of bytes from a seed
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>int   </info>  <strong>$length</strong>  
  <info>string</info>  <strong>$nonce </strong>  
  <info>string</info>  <strong>$key   </strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_hex2bin
type: function
doc:
<comment>Description:</comment>
  Decodes a hexadecimally encoded binary string
  
  Decodes a hexadecimally encoded binary string.
  
  Like <strong>sodium_bin2hex()</strong>, <strong>sodium_hex2bin()</strong> is resistant to side-channel attacks while <strong>hex2bin()</strong> is
  not.

<comment>Param:</comment>
  <info>string</info>  <strong>$string</strong>  Hexadecimal representation of data.
  <info>string</info>  <strong>$ignore</strong>  Optional string argument for characters to ignore.

<comment>Return:</comment>
  <info>string</info>  Returns the binary representation of the given <strong>$string</strong> data.


id: sodium_increment
type: function
doc:
<comment>Description:</comment>
  Increment large number
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$string</strong>  

<comment>Return:</comment>
  <info>void</info>  


id: sodium_memcmp
type: function
doc:
<comment>Description:</comment>
  Test for equality in constant-time
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$string1</strong>  
  <info>string</info>  <strong>$string2</strong>  

<comment>Return:</comment>
  <info>int</info>  


id: sodium_memzero
type: function
doc:
<comment>Description:</comment>
  Overwrite buf with zeros
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$string</strong>  

<comment>Return:</comment>
  <info>void</info>  


id: sodium_pad
type: function
doc:
<comment>Description:</comment>
  Add padding data
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$string</strong>  
  <info>int   </info>  <strong>$length</strong>  

<comment>Return:</comment>
  <info>string</info>  


id: sodium_unpad
type: function
doc:
<comment>Description:</comment>
  Remove padding data
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>string</info>  <strong>$string    </strong>  
  <info>int   </info>  <strong>$block_size</strong>  

<comment>Return:</comment>
  <info>string</info>  


id: solr_get_version
type: function
doc:
<comment>Description:</comment>
  Returns the current version of the Apache Solr extension
  
  This function returns the current version of the extension as a string.

<comment>Return:</comment>
  <info>string</info>  It returns a string on success and <info>false</info> on failure.

<comment>See Also:</comment>
   * <strong>SolrUtils::getSolrVersion()</strong>


id: sort
type: function
doc:
<comment>Description:</comment>
  Sort an array
  
  This function sorts an array.  Elements will be arranged from lowest to highest when this function
  has completed.
  
  Dacă în rezultatul comparației doi membri sunt egali, ordinea lor relativă în tabloul sortat nu
  este definită.

<comment>Param:</comment>
  <info>array</info>  <strong>$array</strong>  The input array.
  <info>int  </info>  <strong>$flags</strong>  The optional second parameter <strong>$flags</strong> may be used to modify the sorting behavior
                 using these values:
                 
                 Sorting type flags: <info>SORT_REGULAR</info> - compare items normally; the details are
                 described in the comparison operators section<info>SORT_NUMERIC</info> - compare items
                 numerically<info>SORT_STRING</info> - compare items as strings<info>SORT_LOCALE_STRING</info> - compare items
                 as strings, based on the current locale. It uses the locale, which can be changed
                 using <strong>setlocale()</strong> <info>SORT_NATURAL</info> - compare items as strings using "natural ordering"
                 like <strong>natsort()</strong> <info>SORT_FLAG_CASE</info> - can be combined (bitwise OR) with <info>SORT_STRING</info> or
                 <info>SORT_NATURAL</info> to sort strings case-insensitively
                 
                 <info>SORT_REGULAR</info> - compare items normally; the details are described in the comparison
                 operators section
                 
                 <info>SORT_NUMERIC</info> - compare items numerically
                 
                 <info>SORT_STRING</info> - compare items as strings
                 
                 <info>SORT_LOCALE_STRING</info> - compare items as strings, based on the current locale. It uses
                 the locale, which can be changed using <strong>setlocale()</strong>
                 
                 <info>SORT_NATURAL</info> - compare items as strings using "natural ordering" like <strong>natsort()</strong>
                 
                 <info>SORT_FLAG_CASE</info> - can be combined (bitwise OR) with <info>SORT_STRING</info> or <info>SORT_NATURAL</info> to
                 sort strings case-insensitively

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>asort()</strong>
   * <strong>rsort()</strong>
   * Comparația funcțiilor de sortare a tablourilor


id: soundex
type: function
doc:
<comment>Description:</comment>
  Calculate the soundex key of a string
  
  Calculates the soundex key of <strong>$string</strong>.
  
  Soundex keys have the property that words pronounced similarly produce the same soundex key, and
  can thus be used to simplify searches in databases where you know the pronunciation but not the
  spelling. This soundex function returns a string 4 characters long, starting with a letter.
  
  This particular soundex function is one described by Donald Knuth in "The Art Of Computer
  Programming, vol. 3: Sorting And Searching", Addison-Wesley (1973), pp. 391-392.

<comment>Param:</comment>
  <info>string</info>  <strong>$string</strong>  The input string.

<comment>Return:</comment>
  <info>string</info>  Returns the soundex key as a <info>string</info>.

<comment>See Also:</comment>
   * <strong>levenshtein()</strong>
   * <strong>metaphone()</strong>
   * <strong>similar_text()</strong>


id: spl_autoload
type: function
doc:
<comment>Description:</comment>
  Default implementation for __autoload()
  
  This function is intended to be used as a default implementation for <strong>__autoload()</strong>. If nothing else
  is specified and <strong>spl_autoload_register()</strong> is called without any parameters then this function will
  be used for any later call to <strong>__autoload()</strong>.

<comment>Param:</comment>
  <info>string</info>  <strong>$class_name     </strong>  The lowercased name of the class (and namespace) being instantiated.
  <info>string</info>  <strong>$file_extensions</strong>  By default it checks all include paths to contain filenames built up by
                            the lowercase class name appended by the filename extensions .inc and
                            .php.

<comment>Return:</comment>
  <info>void</info>  Nu este întoarsă nici o valoare.


id: spl_autoload_call
type: function
doc:
<comment>Description:</comment>
  Try all registered __autoload() functions to load the requested class
  
  This function can be used to manually search for a class or interface using the registered
  __autoload functions.

<comment>Param:</comment>
  <info>string</info>  <strong>$class_name</strong>  The class name being searched.

<comment>Return:</comment>
  <info>void</info>  Nu este întoarsă nici o valoare.


id: spl_autoload_extensions
type: function
doc:
<comment>Description:</comment>
  Register and return default file extensions for spl_autoload
  
  This function can modify and check the file extensions that the built in <strong>__autoload()</strong> fallback
  function <strong>spl_autoload()</strong>  will be using.
  
  There should not be a space between the defined file extensions.

<comment>Param:</comment>
  <info>string</info>  <strong>$file_extensions</strong>  When calling without an argument, it simply returns the current list of
                            extensions each separated by comma. To modify the list of file
                            extensions, simply invoke the functions with the new list of file
                            extensions to use in a single string with each extensions separated by
                            comma.

<comment>Return:</comment>
  <info>string</info>  A comma delimited list of default file extensions for <strong>spl_autoload()</strong>.


id: spl_autoload_functions
type: function
doc:
<comment>Description:</comment>
  Return all registered __autoload() functions
  
  Get all registered __autoload() functions.

<comment>Return:</comment>
  <info>array</info>  An <info>array</info> of all registered __autoload functions. If the autoload queue is not activated
         then the return value is <info>false</info>. If no function is registered the return value will be an
         empty array.


id: spl_autoload_register
type: function
doc:
<comment>Description:</comment>
  Register given function as __autoload() implementation
  
  Register a function with the spl provided __autoload queue. If the queue is not yet activated it
  will be activated.
  
  If your code has an existing <strong>__autoload()</strong> function then this function must be explicitly
  registered on the __autoload queue. This is because <strong>spl_autoload_register()</strong> will effectively
  replace the engine cache for the <strong>__autoload()</strong> function by either <strong>spl_autoload()</strong> or
  <strong>spl_autoload_call()</strong>.
  
  If there must be multiple autoload functions, <strong>spl_autoload_register()</strong>  allows for this. It
  effectively creates a queue of autoload functions, and runs through each of them in the order they
  are defined. By contrast,  <strong>__autoload()</strong> may only be defined once.

<comment>Param:</comment>
  <info>callable</info>  <strong>$autoload_function</strong>  The autoload function being registered. If no parameter is provided,
                                then the default implementation of <strong>spl_autoload()</strong> will be
                                registered.
  <info>bool    </info>  <strong>$throw            </strong>  This parameter specifies whether <strong>spl_autoload_register()</strong> should
                                throw  exceptions when the <strong>$autoload_function</strong> cannot be registered.
  <info>bool    </info>  <strong>$prepend          </strong>  If true, <strong>spl_autoload_register()</strong> will prepend the autoloader on the
                                autoload queue instead of appending it.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>__autoload()</strong>


id: spl_autoload_unregister
type: function
doc:
<comment>Description:</comment>
  Unregister given function as __autoload() implementation
  
  Removes a function from the autoload queue. If the queue is activated and empty after removing the
  given function then it will be deactivated.
  
  When this function results in the queue being deactivated, any __autoload function that previously
  existed will not be reactivated.

<comment>Param:</comment>
  <info>mixed</info>  <strong>$autoload_function</strong>  The autoload function being unregistered.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.


id: spl_classes
type: function
doc:
<comment>Description:</comment>
  Return available SPL classes
  
  This function returns an array with the current available SPL classes.

<comment>Return:</comment>
  <info>array</info>  Returns an <info>array</info> containing the currently available SPL classes.


id: spl_object_hash
type: function
doc:
<comment>Description:</comment>
  Return hash id for given object
    
  
  This function returns a unique identifier for the object. This id can be used as a hash key for
  storing objects, or for identifying an object, as long as the object is not destroyed. Once the
  object is destroyed, its hash may  be reused for other objects.

<comment>Param:</comment>
  <info></info>  <strong>$object</strong>  Any object.

<comment>Return:</comment>
  <info>string</info>  A string that is unique for each currently existing object and is always the same for each
          object.


id: spl_object_id
type: function
doc:
<comment>Description:</comment>
  Return the integer object handle for given object
    
  
  This function returns a unique identifier for the object. The object id is unique for the lifetime
  of the object. Once the object is destroyed, its id may be reused for other objects. This behavior
  is similar to <strong>spl_object_hash()</strong>.

<comment>Param:</comment>
  <info></info>  <strong>$object</strong>  Any object.

<comment>Return:</comment>
  <info>int</info>  An integer identifier that is unique for each currently existing object and is always the
       same for each object.


id: split
type: function
doc:
<comment>Description:</comment>
  Split string into array by regular expression
  
  Splits a <strong>$string</strong> into array by regular expression.

<comment>Param:</comment>
  <info>string</info>  <strong>$pattern</strong>  Case sensitive regular expression.
                    
                    If you want to split on any of the characters which are considered special by
                    regular expressions, you'll need to escape them first. If you think <strong>split()</strong> (or
                    any other regex function, for that matter) is doing something weird, please read
                    the file regex.7, included in the  regex/ subdirectory of the PHP distribution.
                    It's in manpage format, so you'll want to do something along the lines of man
                    /usr/local/src/regex/regex.7 in order to read it.
  <info>string</info>  <strong>$string </strong>  The input string.
  <info>int   </info>  <strong>$limit  </strong>  If <strong>$limit</strong> is set, the returned array will contain a maximum of <strong>$limit</strong> elements
                    with the last element containing the whole rest of <strong>$string</strong>.

<comment>Return:</comment>
  <info>array</info>  Returns an array of strings, each of which is a substring of <strong>$string</strong> formed by splitting it
         on boundaries formed by the case-sensitive regular expression <strong>$pattern</strong>.
         
         If there are n occurrences of <strong>$pattern</strong>, the returned array will contain <return>n+1</return> items. For
         example, if there is no occurrence of <strong>$pattern</strong>, an array with only one element will be
         returned. Of course, this is also true if <strong>$string</strong> is empty. If an error occurs, <strong>split()</strong>
         returns <info>false</info>.

<comment>See Also:</comment>
   * <strong>preg_split()</strong>
   * <strong>spliti()</strong>
   * <strong>str_split()</strong>
   * <strong>explode()</strong>
   * <strong>implode()</strong>
   * <strong>chunk_split()</strong>
   * <strong>wordwrap()</strong>


id: spliti
type: function
doc:
<comment>Description:</comment>
  Split string into array by regular expression case insensitive
  
  Splits a <strong>$string</strong> into array by regular expression.
  
  This function is identical to <strong>split()</strong> except that this ignores case distinction when matching
  alphabetic characters.

<comment>Param:</comment>
  <info>string</info>  <strong>$pattern</strong>  Case insensitive regular expression.
                    
                    If you want to split on any of the characters which are considered special by
                    regular expressions, you'll need to escape them first. If you think <strong>spliti()</strong> (or
                    any other regex function, for that matter) is doing something weird, please read
                    the file regex.7, included in the  regex/ subdirectory of the PHP distribution.
                    It's in manpage format, so you'll want to do something along the lines of man
                    /usr/local/src/regex/regex.7 in order to read it.
  <info>string</info>  <strong>$string </strong>  The input string.
  <info>int   </info>  <strong>$limit  </strong>  If <strong>$limit</strong> is set, the returned array will contain a maximum of <strong>$limit</strong> elements
                    with the last element containing the whole rest of <strong>$string</strong>.

<comment>Return:</comment>
  <info>array</info>  Returns an array of strings, each of which is a substring of <strong>$string</strong> formed by splitting it
         on boundaries formed by the case insensitive regular expression <strong>$pattern</strong>.
         
         If there are n occurrences of <strong>$pattern</strong>, the returned array will contain <return>n+1</return> items. For
         example, if there is no occurrence of <strong>$pattern</strong>, an array with only one element will be
         returned. Of course, this is also true if <strong>$string</strong> is empty. If an error occurs, <strong>spliti()</strong>
         returns <info>false</info>.

<comment>See Also:</comment>
   * <strong>preg_split()</strong>
   * <strong>split()</strong>
   * <strong>explode()</strong>
   * <strong>implode()</strong>


id: sprintf
type: function
doc:
<comment>Description:</comment>
  Return a formatted string
  
  Returns a string produced according to the formatting string <strong>$format</strong>.

<comment>Param:</comment>
  <info>string</info>  <strong>$format</strong>  Șirul de formatare este compus din zero sau mai multe directive: caractere
                   obișnuite (în afară de <return>%</return>), care sunt copiate direct în rezultat și specificatori
                   de conversie, fiecare având parametrul său.
                   
                   Un specificator de conversie e compus după următorul prototip:
                   <return>%[argnum$][flags][width][.precision]specifier</return>.
                   
                   Un întreg urmat de senmul dolar <return>$</return>, pentru a specifica ce argument de număr
                   trebuie tratat în conversie.
                   
                   FlagsFlagDescriere<return>-</return> Alinierea spre stânga în limitele lungimii câmpului; Implicit
                   se efectuează alinierea spre dreapta <return>+</return> Prefixează numerele pozitive cu semnul
                   plus <return>+</return>; implicit doar numerele negative sunt prefixate cu semnul minus. <return> </return>(spațiu)
                   Completează rezultatul cu spații. Acesta este comportamentul implicit. <return>0</return>
                   Completează numerele cu zerouri în stânga. Cu specificatorii <return>s</return> se poate de
                   completat cu zerouri și în dreapta. <return>'</return>(char) Completează rezultatul cu caracterul
                   (char).
                   
                   Un număr întreg ce indică câte caractere (minimum) trebuie să aibă rezultatul
                   conversiei.
                   
                   Un punct <return>.</return>, urmat de un număr întreg, însemnătatea căruia depinde de
                   specificator:  Pentru specificatorii <return>e</return>, <return>E</return>, <return>f</return> și <return>F</return>: acesta este numărul de cifre
                   ce vor fi tipărite după punctul zecimal (implicit acesta este 6).  Pentru
                   specificatorii <return>g</return> și <return>G</return>: acesta este numărul maxim de cifre semnificative ce va fi
                   tipărit.  Pentru specificatorul <return>s</return>: acesta funcționează ca punct de oprire,
                   stabilind limita maximă a numărului de caractere din șir.   Dacă punctul este
                   specificat fără o valoare explicită pentru precizie, se presupune că aceasta este
                   0.
                   
                   Pentru specificatorii <return>e</return>, <return>E</return>, <return>f</return> și <return>F</return>: acesta este numărul de cifre ce vor fi
                   tipărite după punctul zecimal (implicit acesta este 6).
                   
                   Pentru specificatorii <return>g</return> și <return>G</return>: acesta este numărul maxim de cifre semnificative ce
                   va fi tipărit.
                   
                   Pentru specificatorul <return>s</return>: acesta funcționează ca punct de oprire, stabilind limita
                   maximă a numărului de caractere din șir.
                   
                   Dacă punctul este specificat fără o valoare explicită pentru precizie, se
                   presupune că aceasta este 0.
                   
                   Încercarea de a folosi un specificator de poziție mai mare decât <info>PHP_INT_MAX</info> va
                   genera avertizări.
                   
                   SpecifiersSpecifierDescriere<return>%</return> Specifică caracterul procent. Nu este necesar
                   vre-un argument. <return>b</return> Argumentul este tratat ca un întreg și prezentat ca număr
                   binar. <return>c</return> Argumentul este tratat ca un întreg și prezentat ca caracter cu acest
                   cod ASCII. <return>d</return> Argumentul este tratat ca un întreg și prezentat ca număr zecimal
                   (cu semn). <return>e</return> Argumentul este tratat ca număr în notație exponențială (de ex.
                   1.2e+2). Specificatorul de precizie semnifică numărul de cifre după virgulă
                   începând cu PHP 5.2.1. În versiuni anterioare el specifica numărul de cifre
                   semnificative (cu una mai puțin). <return>E</return> La fel ca și specificatorul <return>e</return>, dar folosește
                   caracterul majuscul (de ex. 1.2E+2). <return>f</return> Argumentul este tratat ca număr cu virgulă
                   și prezentat ca atare (în dependență de setările de localizare). <return>F</return> Argumentul
                   este tratat ca număr cu virgulă și prezentat ca atare (fără a se ține cont de
                   setările de localizare). Disponibil începând cu PHP 5.0.3. <return>g</return> Format general.  Fie
                   că P este egal cu precizia, dacă nu este zero, 6 dacă precizia este omisă, sau 1
                   dacă precizia este zero. Atunci dacă o conversie cu stilul E ar avea un exponent
                   X:  Dacă P &gt; X ≥ −4, atunci conversia este de stilul f și precizia P − (X +
                   1). În caz contrar, conversia este de stilul e și precizia P − 1. <return>G</return> La fel ca și
                   specificatorul <return>g</return>, dar utilizează <return>E</return> și <return>f</return>. <return>o</return> Argumentul este tratat ca întreg și
                   prezentat ca număr octal. <return>s</return> Argumentul este tratat și prezentat ca șir de
                   caractere. <return>u</return> Argumentul este tratat ca întreg și prezentat ca număr zecimal fără
                   semn. <return>x</return> Argumentul este tratat ca întreg și prezentat ca număr hexazecimal (cu
                   caractere minuscule). <return>X</return> Argumentul este tratat ca întreg și prezentat ca număr
                   hexazecimal (cu caractere majuscule).
                   
                   Format general.
                   
                   Fie că P este egal cu precizia, dacă nu este zero, 6 dacă precizia este omisă,
                   sau 1 dacă precizia este zero. Atunci dacă o conversie cu stilul E ar avea un
                   exponent X:
                   
                   Dacă P &gt; X ≥ −4, atunci conversia este de stilul f și precizia P − (X + 1). În
                   caz contrar, conversia este de stilul e și precizia P − 1.
                   
                   Specificatorul de tip <return>c</return> ignoră completarea cu spații și lungimea
                   
                   Încercarea de a folosi o combinație din specificatori de șiruri de caractere și
                   lungime cu seturi de caractere ce necesită mai mult de un octet per caracter
                   poate da rezultate imprevizibile
                   
                   Variabilele vor fi aduse la un tip potrivit pentru specificatorul: Manipularea
                   tipurilorTipulSpecificatorii<return>string</return><return>s</return><return>integer</return><return>d</return>, <return>u</return>, <return>c</return>, <return>o</return>, <return>x</return>, <return>X</return>, <return>b</return><return>double</return><return>g</return>, <return>G</return>, <return>e</return>, <return>E</return>, <return>f</return>,
                   <return>F</return>
  <info>mixed </info>  <strong>$values</strong>  

<comment>Return:</comment>
  <info>string</info>  Returns a string produced according to the formatting string <strong>$format</strong>.

<comment>See Also:</comment>
   * <strong>printf()</strong>
   * <strong>fprintf()</strong>
   * <strong>vprintf()</strong>
   * <strong>vsprintf()</strong>
   * <strong>vfprintf()</strong>
   * <strong>sscanf()</strong>
   * <strong>fscanf()</strong>
   * <strong>number_format()</strong>
   * <strong>date()</strong>


id: sql_regcase
type: function
doc:
<comment>Description:</comment>
  Make regular expression for case insensitive match
  
  Creates a regular expression for a case insensitive match.

<comment>Param:</comment>
  <info>string</info>  <strong>$string</strong>  The input string.

<comment>Return:</comment>
  <info>string</info>  Returns a valid regular expression which will match <strong>$string</strong>, ignoring case. This
          expression is <strong>$string</strong> with each alphabetic character converted to a bracket expression;
          this bracket expression contains that character's uppercase and lowercase form.  Other
          characters remain unchanged.


id: sqlsrv_begin_transaction
type: function
doc:
<comment>Description:</comment>
  Begins a database transaction
  
  The transaction begun by <strong>sqlsrv_begin_transaction()</strong> includes  all statements that were executed
  after the call to  <strong>sqlsrv_begin_transaction()</strong> and before calls to  <strong>sqlsrv_rollback()</strong> or
  <strong>sqlsrv_commit()</strong>.  Explicit transactions should be started and committed or rolled back using
  these functions instead of executing SQL statements that begin and commit/roll  back transactions.
  For more information, see  SQLSRV Transactions.

<comment>Param:</comment>
  <info>resource</info>  <strong>$conn</strong>  The connection resource returned by a call to <strong>sqlsrv_connect()</strong>.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>sqlsrv_commit()</strong>
   * <strong>sqlsrv_rollback()</strong>


id: sqlsrv_cancel
type: function
doc:
<comment>Description:</comment>
  Cancels a statement
  
  Cancels a statement. Any results associated with the statement that have not  been consumed are
  deleted. After <strong>sqlsrv_cancel()</strong> has been  called, the specified statement can be re-executed if it
  was created with  <strong>sqlsrv_prepare()</strong>. Calling <strong>sqlsrv_cancel()</strong>  is not necessary if all the results
  associated with the statement have been  consumed.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stmt</strong>  The statement resource to be cancelled.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>sqlsrv_free_stmt()</strong>
   * <strong>sqlsrv_prepare()</strong>


id: sqlsrv_client_info
type: function
doc:
<comment>Description:</comment>
  Returns information about the client and specified connection
  
  Returns information about the client and specified connection

<comment>Param:</comment>
  <info>resource</info>  <strong>$conn</strong>  The connection about which information is returned.

<comment>Return:</comment>
  <info>array</info>  Returns an associative array with keys described in the table below.  Returns <info>false</info>
         otherwise.  Array returned by
         sqlsrv_client_infoKeyDescriptionDriverDllNameSQLNCLI10.DLLDriverODBCVerODBC version
         (xx.yy)DriverVerSQL Server Native Client DLL version (10.5.xxx)ExtensionVerphp_sqlsrv.dll
         version (2.0.xxx.x)

<comment>See Also:</comment>
   * <strong>sqlsrv_server_info()</strong>


id: sqlsrv_close
type: function
doc:
<comment>Description:</comment>
  Closes an open connection and releases resourses associated with the connection
  
  Closes an open connection and releases resourses associated with the connection.

<comment>Param:</comment>
  <info>resource</info>  <strong>$conn</strong>  The connection to be closed.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>sqlsrv_connect()</strong>


id: sqlsrv_commit
type: function
doc:
<comment>Description:</comment>
  Commits a transaction that was begun with sqlsrv_begin_transaction
  
  Commits a transaction that was begun with <strong>sqlsrv_begin_transaction()</strong>.  The connection is returned
  to auto-commit mode after <strong>sqlsrv_commit()</strong>  is called. The transaction that is committed includes
  all statements that were  executed after the call to <strong>sqlsrv_begin_transaction()</strong>.  Explicit
  transactions should be started and committed or rolled back using these  functions instead of
  executing SQL statements that begin and commit/roll back  transactions. For more information, see
  SQLSRV Transactions.

<comment>Param:</comment>
  <info>resource</info>  <strong>$conn</strong>  The connection on which the transaction is to be committed.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>sqlsrv_begin_transaction()</strong>
   * <strong>sqlsrv_rollback()</strong>


id: sqlsrv_configure
type: function
doc:
<comment>Description:</comment>
  Changes the driver error handling and logging configurations
  
  Changes the driver error handling and logging configurations.

<comment>Param:</comment>
  <info>string</info>  <strong>$setting</strong>  The name of the setting to set. The possible values are
                    "WarningsReturnAsErrors", "LogSubsystems", and "LogSeverity".
  <info>mixed </info>  <strong>$value  </strong>  The value of the specified setting. The following table shows possible values:
                    Error and Logging Setting OptionsSettingOptionsWarningsReturnAsErrors1 (<info>true</info>) or
                    0 (<info>false</info>)LogSubsystemsSQLSRV_LOG_SYSTEM_ALL (-1)  SQLSRV_LOG_SYSTEM_CONN (2)
                    SQLSRV_LOG_SYSTEM_INIT (1)  SQLSRV_LOG_SYSTEM_OFF (0)  SQLSRV_LOG_SYSTEM_STMT
                    (4)  SQLSRV_LOG_SYSTEM_UTIL (8)LogSeveritySQLSRV_LOG_SEVERITY_ALL (-1)
                    SQLSRV_LOG_SEVERITY_ERROR (1)  SQLSRV_LOG_SEVERITY_NOTICE (4)
                    SQLSRV_LOG_SEVERITY_WARNING (2)

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * SQLSRV Error Handling.
   * Logging SQLSRV Activity.


id: sqlsrv_connect
type: function
doc:
<comment>Description:</comment>
  Opens a connection to a Microsoft SQL Server database
  
  Opens a connection to a Microsoft SQL Server database. By default, the connection  is attempted
  using Windows Authentication. To connect using SQL Server  Authentication, include "UID" and "PWD"
  in the connection options array.

<comment>Param:</comment>
  <info>string</info>  <strong>$serverName    </strong>  The name of the server to which a connection is established. To connect
                           to a specific instance, follow the server name with a backward slash  and
                           the instance name (e.g. serverName\sqlexpress).
  <info>array </info>  <strong>$connectionInfo</strong>  An associative array that specifies options for connecting to the server.
                           If values for the UID and PWD keys are not specified, the connection
                           will be attempted using Windows Authentication. For a complete list of
                           supported  keys, see SQLSRV Connection Options.

<comment>Return:</comment>
  <info>resource</info>  A connection resource. If a connection cannot be successfully opened, <info>false</info> is returned.

<comment>See Also:</comment>
   * <strong>sqlsrv_close()</strong>
   * <strong>sqlsrv_errors()</strong>
   * <strong>sqlsrv_query()</strong>


id: sqlsrv_errors
type: function
doc:
<comment>Description:</comment>
  Returns error and warning information about the last SQLSRV operation performed
  
  Returns error and warning information about the last SQLSRV operation performed.

<comment>Param:</comment>
  <info>int</info>  <strong>$errorsOrWarnings</strong>  Determines whether error information, warning information, or both are
                          returned. If this parameter is not supplied, both error information and
                          warning information are returned. The following are the supported values
                          for this parameter: SQLSRV_ERR_ALL, SQLSRV_ERR_ERRORS,
                          SQLSRV_ERR_WARNINGS.

<comment>Return:</comment>
  <info>mixed</info>  If errors and/or warnings occurred on the last sqlsrv operation, an array of  arrays
         containing error information is returned. If no errors and/or warnings  occurred on the
         last sqlsrv operation, <info>null</info> is returned. The following table  describes the structure of
         the returned arrays: Array returned by sqlsrv_errorsKeyDescriptionSQLSTATEFor errors that
         originate from the ODBC driver, the SQLSTATE returned  by ODBC. For errors that originate
         from the Microsoft Drivers for PHP for  SQL Server, a SQLSTATE of IMSSP. For warnings that
         originate from the  Microsoft Drivers for PHP for SQL Server, a SQLSTATE of 01SSP. codeFor
         errors that originate from SQL Server, the native SQL Server  error code. For errors that
         originate from the ODBC driver, the error  code returned by ODBC. For errors that originate
         from the Microsoft Drivers  for PHP for SQL Server, the Microsoft Drivers for PHP for SQL
         Server error code. messageA description of the error.

<comment>See Also:</comment>
   * <strong>sqlsrv_configure()</strong>


id: sqlsrv_execute
type: function
doc:
<comment>Description:</comment>
  Executes a statement prepared with sqlsrv_prepare
  
  Executes a statement prepared with <strong>sqlsrv_prepare()</strong>. This  function is ideal for executing a
  prepared statement multiple times with  different parameter values.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stmt</strong>  A statement resource returned by <strong>sqlsrv_prepare()</strong>.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>sqlsrv_prepare()</strong>
   * <strong>sqlsrv_query()</strong>


id: sqlsrv_fetch
type: function
doc:
<comment>Description:</comment>
  Makes the next row in a result set available for reading
  
  Makes the next row in a result set available for reading. Use  <strong>sqlsrv_get_field()</strong> to read the
  fields of the row.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stmt  </strong>  A statement resource created by executing <strong>sqlsrv_query()</strong>  or <strong>sqlsrv_execute()</strong>.
  <info>int     </info>  <strong>$row   </strong>  The row to be accessed. This parameter can only be used if the specified
                     statement was prepared with a scrollable cursor. In that case, this parameter
                     can take on one of the following values:
                     SQLSRV_SCROLL_NEXTSQLSRV_SCROLL_PRIORSQLSRV_SCROLL_FIRSTSQLSRV_SCROLL_LASTSQLSRV_SCROLL_ABSOLUTESQLSRV_SCROLL_RELATIVE
  <info>int     </info>  <strong>$offset</strong>  Specifies the row to be accessed if the row parameter is set to
                     <info>SQLSRV_SCROLL_ABSOLUTE</info> or <info>SQLSRV_SCROLL_RELATIVE</info>. Note that the first row in a
                     result set has index 0.

<comment>Return:</comment>
  <info>mixed</info>  Returns <info>true</info> if the next row of a result set was successfully retrieved,  <info>false</info> if an error
         occurs, and <info>null</info> if there are no more rows in the result set.

<comment>See Also:</comment>
   * <strong>sqlsrv_get_field()</strong>
   * <strong>sqlsrv_fetch_array()</strong>
   * <strong>sqlsrv_fetch_object()</strong>


id: sqlsrv_fetch_array
type: function
doc:
<comment>Description:</comment>
  Returns a row as an array
  
  Returns the next available row of data as an associative array, a numeric  array, or both (the
  default).

<comment>Param:</comment>
  <info>resource</info>  <strong>$stmt     </strong>  A statement resource returned by sqlsrv_query or sqlsrv_prepare.
  <info>int     </info>  <strong>$fetchType</strong>  A predefined constant specifying the type of array to return. Possible
                        values are <info>SQLSRV_FETCH_ASSOC</info>,  <info>SQLSRV_FETCH_NUMERIC</info>, and  <info>SQLSRV_FETCH_BOTH</info>
                        (the default).
                        
                        A fetch type of SQLSRV_FETCH_ASSOC should not be used when consuming a
                        result set with multiple columns of the same name.
  <info>int     </info>  <strong>$row      </strong>  Specifies the row to access in a result set that uses a scrollable cursor.
                        Possible values are <info>SQLSRV_SCROLL_NEXT</info>,  <info>SQLSRV_SCROLL_PRIOR</info>,
                        <info>SQLSRV_SCROLL_FIRST</info>,  <info>SQLSRV_SCROLL_LAST</info>, <info>SQLSRV_SCROLL_ABSOLUTE</info> and,
                        <info>SQLSRV_SCROLL_RELATIVE</info> (the default). When this parameter  is specified, the
                        <strong>$fetchType</strong> must be explicitly defined.
  <info>int     </info>  <strong>$offset   </strong>  Specifies the row to be accessed if the row parameter is set to
                        <info>SQLSRV_SCROLL_ABSOLUTE</info> or <info>SQLSRV_SCROLL_RELATIVE</info>. Note that the first row in
                        a result set has index 0.

<comment>Return:</comment>
  <info>array</info>  Returns an array on success, <info>null</info> if there are no more rows to return, and  <info>false</info> if an
         error occurs.

<comment>See Also:</comment>
   * <strong>sqlsrv_connect()</strong>
   * <strong>sqlsrv_query()</strong>
   * <strong>sqlsrv_errors()</strong>
   * <strong>sqlsrv_fetch()</strong>


id: sqlsrv_fetch_object
type: function
doc:
<comment>Description:</comment>
  Retrieves the next row of data in a result set as an object
  
  Retrieves the next row of data in a result set as an instance of the specified  class with
  properties that match the row field names and values that correspond  to the row field values.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stmt      </strong>  A statement resource created by <strong>sqlsrv_query()</strong> or  <strong>sqlsrv_execute()</strong>.
  <info>string  </info>  <strong>$className </strong>  The name of the class to instantiate. If no class name is specified,
                         stdClass is instantiated.
  <info>array   </info>  <strong>$ctorParams</strong>  Values passed to the constructor of the specified class. If the constructor
                         of the specified class takes parameters, the ctorParams array must be
                         supplied.
  <info>int     </info>  <strong>$row       </strong>  The row to be accessed. This parameter can only be used if the specified
                         statement was prepared with a scrollable cursor. In that case, this
                         parameter  can take on one of the following values:
                         SQLSRV_SCROLL_NEXTSQLSRV_SCROLL_PRIORSQLSRV_SCROLL_FIRSTSQLSRV_SCROLL_LASTSQLSRV_SCROLL_ABSOLUTESQLSRV_SCROLL_RELATIVE
  <info>int     </info>  <strong>$offset    </strong>  Specifies the row to be accessed if the row parameter is set to
                         <info>SQLSRV_SCROLL_ABSOLUTE</info> or <info>SQLSRV_SCROLL_RELATIVE</info>. Note that the first row
                         in a result set has index 0.

<comment>Return:</comment>
  <info>mixed</info>  Returns an object on success, <info>null</info> if there are no more rows to return,  and <info>false</info> if an
         error occurs or if the specified class does not exist.

<comment>See Also:</comment>
   * <strong>sqlsrv_fetch()</strong>
   * <strong>sqlsrv_fetch_array()</strong>


id: sqlsrv_field_metadata
type: function
doc:
<comment>Description:</comment>
  Retrieves metadata for the fields of a statement prepared by 
    sqlsrv_prepare or sqlsrv_query
    
  
  Retrieves metadata for the fields of a statement prepared by  <strong>sqlsrv_prepare()</strong> or <strong>sqlsrv_query()</strong>.
  <strong>sqlsrv_field_metadata()</strong> can be called on a statement before  or after statement execution.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stmt</strong>  The statement resource for which metadata is returned.

<comment>Return:</comment>
  <info>mixed</info>  Returns an array of arrays on success. Otherwise, <info>false</info> is returned.  Each returned array
         is described by the following table: Array returned by
         sqlsrv_field_metadataKeyDescriptionNameThe name of the field.TypeThe numeric value for the
         SQL type.SizeThe number of characters for fields of character type, the number of  bytes
         for fields of binary type, or <info>null</info> for other types.PrecisionThe precision for types of
         variable precision, <info>null</info> for other types.ScaleThe scale for types of variable scale, <info>null</info>
         for other types.NullableAn enumeration indicating whether the column is nullable, not
         nullable,  or if it is not known. For more information, see sqlsrv_field_metadata  in the
         Microsoft SQLSRV documentation.

<comment>See Also:</comment>
   * <strong>sqlsrv_client_info()</strong>


id: sqlsrv_free_stmt
type: function
doc:
<comment>Description:</comment>
  Frees all resources for the specified statement
  
  Frees all resources for the specified statement. The statement cannot be used  after
  <strong>sqlsrv_free_stmt()</strong> has been called on it. If  <strong>sqlsrv_free_stmt()</strong> is called on an in-progress
  statement  that alters server state, statement execution is terminated and the statement  is
  rolled back.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stmt</strong>  The statement for which resources are freed.  Note that <info>null</info> is a valid parameter
                   value. This allows the function to be  called multiple times in a script.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>sqlsrv_cancel()</strong>


id: sqlsrv_get_config
type: function
doc:
<comment>Description:</comment>
  Returns the value of the specified configuration setting
  
  Returns the value of the specified configuration setting.

<comment>Param:</comment>
  <info>string</info>  <strong>$setting</strong>  The name of the setting for which the value is returned. For a list of
                    configurable settings, see <strong>sqlsrv_configure()</strong>.

<comment>Return:</comment>
  <info>mixed</info>  Returns the value of the specified setting. If an invalid setting is specified,  <info>false</info> is
         returned.

<comment>See Also:</comment>
   * <strong>sqlsrv_configure()</strong>


id: sqlsrv_get_field
type: function
doc:
<comment>Description:</comment>
  Gets field data from the currently selected row
  
  Gets field data from the currently selected row. Fields must be accessed in  order. Field indices
  start at 0.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stmt      </strong>  A statement resource returned by <strong>sqlsrv_query()</strong> or  <strong>sqlsrv_execute()</strong>.
  <info>int     </info>  <strong>$fieldIndex</strong>  The index of the field to be retrieved. Field indices start at 0. Fields
                         must be accessed in order. i.e. If you access field index 1, then field
                         index 0 will not be available.
  <info>int     </info>  <strong>$getAsType </strong>  The PHP data type for the returned field data. If this parameter is not
                         set, the field data will be returned as its default PHP data type. For
                         information about default PHP data types, see  Default PHP Data Types  in
                         the Microsoft SQLSRV documentation.

<comment>Return:</comment>
  <info>mixed</info>  Returns data from the specified field on success. Returns <info>false</info> otherwise.

<comment>See Also:</comment>
   * <strong>sqlsrv_fetch()</strong>
   * <strong>sqlsrv_fetch_array()</strong>
   * <strong>sqlsrv_fetch_object()</strong>


id: sqlsrv_has_rows
type: function
doc:
<comment>Description:</comment>
  Indicates whether the specified statement has rows
  
  Indicates whether the specified statement has rows.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stmt</strong>  A statement resource returned by <strong>sqlsrv_query()</strong> or  <strong>sqlsrv_execute()</strong>.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if the specified statement has rows and <info>false</info> if the statement  does not have
        rows or if an error occurred.

<comment>See Also:</comment>
   * <strong>sqlsrv_num_rows()</strong>
   * <strong>sqlsrv_query()</strong>


id: sqlsrv_next_result
type: function
doc:
<comment>Description:</comment>
  Makes the next result of the specified statement active
  
  Makes the next result of the specified statement active. Results include result  sets, row counts,
  and output parameters.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stmt</strong>  The statement on which the next result is being called.

<comment>Return:</comment>
  <info>mixed</info>  Returns <info>true</info> if the next result was successfully retrieved, <info>false</info> if an error  occurred,
         and <info>null</info> if there are no more results to retrieve.

<comment>See Also:</comment>
   * <strong>sqlsrv_query()</strong>
   * <strong>sqlsrv_fetch_array()</strong>
   * <strong>sqlsrv_rows_affected()</strong>


id: sqlsrv_num_fields
type: function
doc:
<comment>Description:</comment>
  Retrieves the number of fields (columns) on a statement
  
  Retrieves the number of fields (columns) on a statement.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stmt</strong>  The statement for which the number of fields is returned.  <strong>sqlsrv_num_fields()</strong>
                   can be called on a statement before  or after statement execution.

<comment>Return:</comment>
  <info>mixed</info>  Returns the number of fields on success. Returns <info>false</info> otherwise.

<comment>See Also:</comment>
   * <strong>sqlsrv_field_metadata()</strong>
   * <strong>sqlsrv_fetch()</strong>
   * <strong>sqlsrv_get_field()</strong>


id: sqlsrv_num_rows
type: function
doc:
<comment>Description:</comment>
  Retrieves the number of rows in a result set
  
  Retrieves the number of rows in a result set. This function requires that the  statement resource
  be created with a static or keyset cursor. For more information,  see <strong>sqlsrv_query()</strong>,
  <strong>sqlsrv_prepare()</strong>,  or Specifying a Cursor Type and Selecting Rows  in the Microsoft SQLSRV
  documentation.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stmt</strong>  The statement for which the row count is returned. The statement resource  must
                   be created with a static or keyset cursor. For more information, see
                   <strong>sqlsrv_query()</strong>, <strong>sqlsrv_prepare()</strong>, or  Specifying a Cursor Type and Selecting Rows
                   in the Microsoft SQLSRV documentation.

<comment>Return:</comment>
  <info>mixed</info>  Returns the number of rows retrieved on success and <info>false</info> if an error occurred.  If a
         forward cursor (the default) or dynamic cursor is used, <info>false</info> is returned.

<comment>See Also:</comment>
   * <strong>sqlsrv_has_rows()</strong>
   * <strong>sqlsrv_rows_affected()</strong>


id: sqlsrv_prepare
type: function
doc:
<comment>Description:</comment>
  Prepares a query for execution
  
  Prepares a query for execution. This function is ideal for preparing a query  that will be
  executed multiple times with different parameter values.

<comment>Param:</comment>
  <info>resource</info>  <strong>$conn   </strong>  A connection resource returned by <strong>sqlsrv_connect()</strong>.
  <info>string  </info>  <strong>$sql    </strong>  The string that defines the query to be prepared and executed.
  <info>array   </info>  <strong>$params </strong>  An array specifying parameter information when executing a parameterized
                      query. Array elements can be any of the following: A literal valueA PHP
                      variableAn array with this structure:  array($value [, $direction [, $phpType
                      [, $sqlType]]]) The following table describes the elements in the array
                      structure above:
  <info>array   </info>  <strong>$options</strong>  An array specifying query property options. The supported keys are described
                      in the following table:

<comment>Return:</comment>
  <info>mixed</info>  Returns a statement resource on success and <info>false</info> if an error occurred.

<comment>See Also:</comment>
   * <strong>sqlsrv_execute()</strong>
   * <strong>sqlsrv_query()</strong>


id: sqlsrv_query
type: function
doc:
<comment>Description:</comment>
  Prepares and executes a query
  
  Prepares and executes a query.

<comment>Param:</comment>
  <info>resource</info>  <strong>$conn   </strong>  A connection resource returned by <strong>sqlsrv_connect()</strong>.
  <info>string  </info>  <strong>$sql    </strong>  The string that defines the query to be prepared and executed.
  <info>array   </info>  <strong>$params </strong>  An array specifying parameter information when executing a parameterized
                      query.  Array elements can be any of the following: A literal valueA PHP
                      variableAn array with this structure:  array($value [, $direction [, $phpType
                      [, $sqlType]]]) The following table describes the elements in the array
                      structure above:
  <info>array   </info>  <strong>$options</strong>  An array specifying query property options. The supported keys are described
                      in the following table:

<comment>Return:</comment>
  <info>mixed</info>  Returns a statement resource on success and <info>false</info> if an error occurred.

<comment>See Also:</comment>
   * <strong>sqlsrv_prepare()</strong>
   * <strong>sqlsrv_execute()</strong>


id: sqlsrv_rollback
type: function
doc:
<comment>Description:</comment>
  Rolls back a transaction that was begun with 
    sqlsrv_begin_transaction
  
  Rolls back a transaction that was begun with <strong>sqlsrv_begin_transaction()</strong>  and returns the
  connection to auto-commit mode.

<comment>Param:</comment>
  <info>resource</info>  <strong>$conn</strong>  The connection resource returned by a call to <strong>sqlsrv_connect()</strong>.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>sqlsrv_begin_transaction()</strong>
   * <strong>sqlsrv_commit()</strong>


id: sqlsrv_rows_affected
type: function
doc:
<comment>Description:</comment>
  Returns the number of rows modified by the last INSERT, UPDATE, or 
    DELETE query executed
  
  Returns the number of rows modified by the last INSERT, UPDATE, or DELETE  query executed. For
  information about the number of rows returned by a SELECT  query, see <strong>sqlsrv_num_rows()</strong>.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stmt</strong>  The executed statement resource for which the number of affected rows is
                   returned.

<comment>Return:</comment>
  <info>int</info>  Returns the number of rows affected by the last INSERT, UPDATE, or DELETE query.  If no rows
       were affected, 0 is returned. If the number of affected rows cannot  be determined, -1 is
       returned. If an error occurred, <info>false</info> is returned.

<comment>See Also:</comment>
   * <strong>sqlsrv_num_rows()</strong>


id: sqlsrv_send_stream_data
type: function
doc:
<comment>Description:</comment>
  Sends data from parameter streams to the server
  
  Send data from parameter streams to the server. Up to 8 KB of data is sent  with each call.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stmt</strong>  A statement resource returned by <strong>sqlsrv_query()</strong> or  <strong>sqlsrv_execute()</strong>.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if there is more data to send and <info>false</info> if there is not.

<comment>See Also:</comment>
   * <strong>sqlsrv_prepare()</strong>
   * <strong>sqlsrv_query()</strong>


id: sqlsrv_server_info
type: function
doc:
<comment>Description:</comment>
  Returns information about the server
  
  Returns information about the server.

<comment>Param:</comment>
  <info>resource</info>  <strong>$conn</strong>  The connection resource that connects the client and the server.

<comment>Return:</comment>
  <info>array</info>  Returns an array as described in the following table: Returned ArrayCurrentDatabaseThe
         connected-to database.SQLServerVersionThe SQL Server version.SQLServerNameThe name of the
         server.

<comment>See Also:</comment>
   * <strong>sqlsrv_client_info()</strong>


id: sqrt
type: function
doc:
<comment>Description:</comment>
  Square root
  
  Returns the square root of <strong>$num</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$num</strong>  The argument to process

<comment>Return:</comment>
  <info>float</info>  The square root of <strong>$num</strong> or the special value <return>NAN</return> for negative numbers.

<comment>See Also:</comment>
   * <strong>pow()</strong>


id: srand
type: function
doc:
<comment>Description:</comment>
  Seed the random number generator
  
  Seeds the random number generator with <strong>$seed</strong> or with a random value if no <strong>$seed</strong> is given.
  
  Nu este nevoie de a însămânța generatorul de numere aleatoare cu ajutorul
  <strong>srand()</strong> sau <strong>mt_srand()</strong>, deoarece aceasta
  se efectuează în mod automat.
  
  As of PHP 7.1.0, <strong>srand()</strong> has been made an alias of <strong>mt_srand()</strong>.

<comment>Param:</comment>
  <info>int</info>  <strong>$seed</strong>  An arbitrary <info>int</info> seed value.

<comment>Return:</comment>
  <info>void</info>  Nu este întoarsă nici o valoare.

<comment>See Also:</comment>
   * <strong>rand()</strong>
   * <strong>getrandmax()</strong>
   * <strong>mt_srand()</strong>


id: sscanf
type: function
doc:
<comment>Description:</comment>
  Parses input from a string according to a format
  
  The function <strong>sscanf()</strong> is the input analog of <strong>printf()</strong>. <strong>sscanf()</strong> reads from the string <strong>$string</strong> and
  interprets it according to the specified <strong>$format</strong>, which is described in the documentation for
  <strong>sprintf()</strong>.
  
  Any whitespace in the format string matches any whitespace in the input string. This means that
  even a tab \t in the format string can match a single space character in the input string.

<comment>Param:</comment>
  <info>string</info>  <strong>$string</strong>  The input <info>string</info> being parsed.
  <info>string</info>  <strong>$format</strong>  The interpreted format for <strong>$string</strong>, which is described in the documentation for
                   <strong>sprintf()</strong> with following differences:  Function is not locale-aware. <return>F</return>, <return>g</return>, <return>G</return> and
                   <return>b</return> are not supported. <return>D</return> stands for decimal number. <return>i</return> stands for integer with base
                   detection. <return>n</return> stands for number of characters processed so far. <return>s</return> stops reading at
                   any whitespace character.
  <info>mixed </info>  <strong>$vars  </strong>  Optionally pass in variables by reference that will contain the parsed values.

<comment>Return:</comment>
  <info>arrayintnull</info>  If only two parameters were passed to this function, the values parsed will be
                returned as an array. Otherwise, if optional parameters are passed, the function
                will return the number of assigned values. The optional parameters must be passed by
                reference.
                
                If there are more substrings expected in the <strong>$format</strong> than there are available within
                <strong>$string</strong>, <info>null</info> will be returned.

<comment>See Also:</comment>
   * <strong>printf()</strong>
   * <strong>sprintf()</strong>
   * <strong>fprintf()</strong>
   * <strong>vprintf()</strong>
   * <strong>vsprintf()</strong>
   * <strong>vfprintf()</strong>
   * <strong>fscanf()</strong>
   * <strong>number_format()</strong>
   * <strong>date()</strong>


id: ssdeep_fuzzy_compare
type: function
doc:
<comment>Description:</comment>
  Calculates the match score between two fuzzy hash signatures
  
  Calculates the match score between <strong>$signature1</strong> and <strong>$signature2</strong> using  context-triggered piecewise
  hashing, and returns the match score.

<comment>Param:</comment>
  <info>string</info>  <strong>$signature1</strong>  The first fuzzy hash signature string.
  <info>string</info>  <strong>$signature2</strong>  The second fuzzy hash signature string.

<comment>Return:</comment>
  <info>int</info>  Returns an integer from 0 to 100 on success, <info>false</info> otherwise.


id: ssdeep_fuzzy_hash
type: function
doc:
<comment>Description:</comment>
  Create a fuzzy hash from a string
  
  <strong>ssdeep_fuzzy_hash()</strong> calculates the hash of  <strong>$to_hash</strong> using  context-triggered piecewise hashing,
  and returns that hash.

<comment>Param:</comment>
  <info>string</info>  <strong>$to_hash</strong>  The input string.

<comment>Return:</comment>
  <info>string</info>  Returns a string on success, <info>false</info> otherwise.


id: ssdeep_fuzzy_hash_filename
type: function
doc:
<comment>Description:</comment>
  Create a fuzzy hash from a file
  
  <strong>ssdeep_fuzzy_hash_filename()</strong> calculates the hash  of the file specified by <strong>$file_name</strong> using
  context-triggered piecewise  hashing, and returns that hash.

<comment>Param:</comment>
  <info>string</info>  <strong>$file_name</strong>  The filename of the file to hash.

<comment>Return:</comment>
  <info>string</info>  Returns a string on success, <info>false</info> otherwise.


id: ssh2_auth_agent
type: function
doc:
<comment>Description:</comment>
  Authenticate over SSH using the ssh agent
  
  Authenticate over SSH using the ssh agent
  
  The <strong>ssh2_auth_agent()</strong> function will only be available  when the ssh2 extension is compiled with
  libssh &gt;= 1.2.3.

<comment>Param:</comment>
  <info>resource</info>  <strong>$session </strong>  An SSH connection link identifier, obtained from a call to <strong>ssh2_connect()</strong>.
  <info>string  </info>  <strong>$username</strong>  Remote user name.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.


id: ssh2_auth_hostbased_file
type: function
doc:
<comment>Description:</comment>
  Authenticate using a public hostkey
  
  Authenticate using a public hostkey read from a file.

<comment>Param:</comment>
  <info>resource</info>  <strong>$session       </strong>  An SSH connection link identifier, obtained from a call to
                             <strong>ssh2_connect()</strong>.
  <info>string  </info>  <strong>$username      </strong>  
  <info>string  </info>  <strong>$hostname      </strong>  
  <info>string  </info>  <strong>$pubkeyfile    </strong>  
  <info>string  </info>  <strong>$privkeyfile   </strong>  
  <info>string  </info>  <strong>$passphrase    </strong>  If <strong>$privkeyfile</strong> is encrypted (which it should be), the passphrase must
                             be provided.
  <info>string  </info>  <strong>$local_username</strong>  If <strong>$local_username</strong> is omitted, then the value for <strong>$username</strong> will be
                             used for it.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.


id: ssh2_auth_none
type: function
doc:
<comment>Description:</comment>
  Authenticate as "none"
  
  Attempt "none" authentication which usually will (and should) fail. As part of the failure, this
  function will return an array of accepted authentication methods.

<comment>Param:</comment>
  <info>resource</info>  <strong>$session </strong>  An SSH connection link identifier, obtained from a call to <strong>ssh2_connect()</strong>.
  <info>string  </info>  <strong>$username</strong>  Remote user name.

<comment>Return:</comment>
  <info>mixed</info>  Returns <info>true</info> if the server does accept "none" as an authentication method, or an array of
         accepted authentication methods on failure.


id: ssh2_auth_password
type: function
doc:
<comment>Description:</comment>
  Authenticate over SSH using a plain password
  
  Authenticate over SSH using a plain password. Since version 0.12 this function also supports
  keyboard_interactive method.

<comment>Param:</comment>
  <info>resource</info>  <strong>$session </strong>  An SSH connection link identifier, obtained from a call to <strong>ssh2_connect()</strong>.
  <info>string  </info>  <strong>$username</strong>  Remote user name.
  <info>string  </info>  <strong>$password</strong>  Password for <strong>$username</strong>

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.


id: ssh2_auth_pubkey_file
type: function
doc:
<comment>Description:</comment>
  Authenticate using a public key
  
  Authenticate using a public key read from a file.

<comment>Param:</comment>
  <info>resource</info>  <strong>$session    </strong>  An SSH connection link identifier, obtained from a call to <strong>ssh2_connect()</strong>.
  <info>string  </info>  <strong>$username   </strong>  
  <info>string  </info>  <strong>$pubkeyfile </strong>  The public key file needs to be in OpenSSH's format. It should look
                          something like:
                          
                          ssh-rsa AAAAB3NzaC1yc2EAAA....NX6sqSnHA8= rsa-key-20121110
  <info>string  </info>  <strong>$privkeyfile</strong>  
  <info>string  </info>  <strong>$passphrase </strong>  If <strong>$privkeyfile</strong> is encrypted (which it should be), the <strong>$passphrase</strong> must be
                          provided.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.


id: ssh2_connect
type: function
doc:
<comment>Description:</comment>
  Connect to an SSH server
  
  Establish a connection to a remote SSH server.
  
  Once connected, the client should verify the server's hostkey using <strong>ssh2_fingerprint()</strong>, then
  authenticate using either password or public key.

<comment>Param:</comment>
  <info>string</info>  <strong>$host     </strong>  
  <info>int   </info>  <strong>$port     </strong>  
  <info>array </info>  <strong>$methods  </strong>  <strong>$methods</strong> may be an associative array with up to four parameters as described
                      below.
                      
                      <strong>$methods</strong> may be an associative array with any or all of the following
                      parameters.IndexMeaningSupported Values*kex List of key exchange methods to
                      advertise, comma separated in order of preference. <return>diffie-hellman-group1-sha1</return>,
                      <return>diffie-hellman-group14-sha1</return>, and <return>diffie-hellman-group-exchange-sha1</return>hostkey
                      List of hostkey methods to advertise, comma separated in order of preference.
                      <return>ssh-rsa</return> and <return>ssh-dss</return> client_to_server Associative array containing crypt,
                      compression, and message authentication code (MAC) method preferences for
                      messages sent from client to server. server_to_client Associative array
                      containing crypt, compression, and message authentication code (MAC) method
                      preferences for messages sent from server to client.
                      
                      * - Supported Values are dependent on methods supported by underlying library.
                      See libssh2 documentation for additional information.
                      
                      <strong>$client_to_server</strong> and <strong>$server_to_client</strong> may be an associative array with any
                      or all of the following parameters. IndexMeaningSupported Values*cryptList of
                      crypto methods to advertise, comma separated in order of
                      preference.<return>rijndael-cbc@lysator.liu.se</return>, <return>aes256-cbc</return>, <return>aes192-cbc</return>, <return>aes128-cbc</return>,
                      <return>3des-cbc</return>, <return>blowfish-cbc</return>, <return>cast128-cbc</return>, <return>arcfour</return>, and <return>none**</return>compList of
                      compression methods to advertise, comma separated in order of preference.<return>zlib</return>
                      and <return>none</return> macList of MAC methods to advertise, comma separated in order of
                      preference.<return>hmac-sha1</return>, <return>hmac-sha1-96</return>, <return>hmac-ripemd160</return>,
                      <return>hmac-ripemd160@openssh.com</return>, and <return>none**</return>
                      
                      Crypt and MAC method "<return>none</return>" For security reasons, <return>none</return> is disabled by the
                      underlying libssh2 library unless explicitly enabled during build time by
                      using the appropriate ./configure options.  See documentation for the
                      underlying library for more information.
                      
                      For security reasons, <return>none</return> is disabled by the underlying libssh2 library
                      unless explicitly enabled during build time by using the appropriate
                      ./configure options.  See documentation for the underlying library for more
                      information.
  <info>array </info>  <strong>$callbacks</strong>  <strong>$callbacks</strong> may be an associative array with any or all of the following
                      parameters.  Callbacks parameters IndexMeaningPrototypeignore Name of function
                      to call when an <info>SSH2_MSG_IGNORE</info> packet is received void
                      ignore_cb($message)debug Name of function to call when an <info>SSH2_MSG_DEBUG</info>
                      packet is received void debug_cb($message, $language, $always_display)macerror
                      Name of function to call when a packet is received but the message
                      authentication code failed.  If the callback returns <info>true</info>, the mismatch will
                      be ignored, otherwise the connection will be terminated. bool
                      macerror_cb($packet)disconnect Name of function to call when an
                      <info>SSH2_MSG_DISCONNECT</info> packet is received void disconnect_cb($reason, $message,
                      $language)

<comment>Return:</comment>
  <info>resource</info>  Returns a resource on success, or <info>false</info> on error.

<comment>See Also:</comment>
   * <strong>ssh2_fingerprint()</strong>
   * <strong>ssh2_auth_none()</strong>
   * <strong>ssh2_auth_password()</strong>
   * <strong>ssh2_auth_pubkey_file()</strong>
   * <strong>ssh2_disconnect()</strong>


id: ssh2_disconnect
type: function
doc:
<comment>Description:</comment>
  Close a connection to a remote SSH server
  
  Close a connection to a remote SSH server.

<comment>Param:</comment>
  <info>resource</info>  <strong>$session</strong>  An SSH connection link identifier, obtained from a call to <strong>ssh2_connect()</strong>.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>ssh2_connect()</strong>


id: ssh2_exec
type: function
doc:
<comment>Description:</comment>
  Execute a command on a remote server
  
  Execute a command at the remote end and allocate a channel for it.

<comment>Param:</comment>
  <info>resource</info>  <strong>$session          </strong>  An SSH connection link identifier, obtained from a call to
                                <strong>ssh2_connect()</strong>.
  <info>string  </info>  <strong>$command          </strong>  
  <info>string  </info>  <strong>$pty              </strong>  
  <info>array   </info>  <strong>$env              </strong>  <strong>$env</strong> may be passed as an associative array of name/value pairs to
                                set in the target environment.
  <info>int     </info>  <strong>$width            </strong>  Width of the virtual terminal.
  <info>int     </info>  <strong>$height           </strong>  Height of the virtual terminal.
  <info>int     </info>  <strong>$width_height_type</strong>  <strong>$width_height_type</strong> should be one of <info>SSH2_TERM_UNIT_CHARS</info> or
                                <info>SSH2_TERM_UNIT_PIXELS</info>.

<comment>Return:</comment>
  <info>resourcefalse</info>  Returns a stream on success sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>ssh2_connect()</strong>
   * <strong>ssh2_shell()</strong>
   * <strong>ssh2_tunnel()</strong>


id: ssh2_fetch_stream
type: function
doc:
<comment>Description:</comment>
  Fetch an extended data stream
  
  Fetches an alternate substream associated with an SSH2 channel stream. The SSH2 protocol currently
  defines only one substream, STDERR, which has a substream ID of <info>SSH2_STREAM_STDERR</info> (defined as 1).

<comment>Param:</comment>
  <info>resource</info>  <strong>$channel </strong>  
  <info>int     </info>  <strong>$streamid</strong>  An SSH2 channel stream.

<comment>Return:</comment>
  <info>resource</info>  Returns the requested stream resource.

<comment>See Also:</comment>
   * <strong>ssh2_shell()</strong>
   * <strong>ssh2_exec()</strong>
   * <strong>ssh2_connect()</strong>


id: ssh2_fingerprint
type: function
doc:
<comment>Description:</comment>
  Retrieve fingerprint of remote server
  
  Returns a server hostkey hash from an active session.

<comment>Param:</comment>
  <info>resource</info>  <strong>$session</strong>  An SSH connection link identifier, obtained from a call to <strong>ssh2_connect()</strong>.
  <info>int     </info>  <strong>$flags  </strong>  <strong>$flags</strong> may be either of <info>SSH2_FINGERPRINT_MD5</info> or <info>SSH2_FINGERPRINT_SHA1</info>
                      logically ORed with <info>SSH2_FINGERPRINT_HEX</info> or <info>SSH2_FINGERPRINT_RAW</info>.

<comment>Return:</comment>
  <info>string</info>  Returns the hostkey hash as a string.


id: ssh2_methods_negotiated
type: function
doc:
<comment>Description:</comment>
  Return list of negotiated methods
  
  Returns list of negotiated methods.

<comment>Param:</comment>
  <info>resource</info>  <strong>$session</strong>  An SSH connection link identifier, obtained from a call to <strong>ssh2_connect()</strong>.

<comment>Return:</comment>
  <info>array</info>  

<comment>See Also:</comment>
   * <strong>ssh2_connect()</strong>


id: ssh2_publickey_add
type: function
doc:
<comment>Description:</comment>
  Add an authorized publickey
    
  
  Subsistemul de chei publice este
  utilizat pentru a gestiona cheile publice de pe un server la care clientul este
  deja autentificat. Pentru autentificare pe un sistem
  îndepărtat utilizând autentificarea cu chei publice, utilizați funcția
  <strong>ssh2_auth_pubkey_file()</strong> în loc.

<comment>Param:</comment>
  <info>resource</info>  <strong>$pkey      </strong>  Publickey Subsystem resource created by <strong>ssh2_publickey_init()</strong>.
  <info>string  </info>  <strong>$algoname  </strong>  Publickey algorithm (e.g.): ssh-dss, ssh-rsa
  <info>string  </info>  <strong>$blob      </strong>  Publickey blob as raw binary data
  <info>bool    </info>  <strong>$overwrite </strong>  If the specified key already exists, should it be overwritten?
  <info>array   </info>  <strong>$attributes</strong>  Associative array of attributes to assign to this public key. Refer to
                         ietf-secsh-publickey-subsystem for a list of supported attributes. To mark
                         an attribute as mandatory, precede its name with an asterisk. If the server
                         is unable to support an attribute marked mandatory, it will abort the add
                         process.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>ssh2_publickey_init()</strong>
   * <strong>ssh2_publickey_remove()</strong>
   * <strong>ssh2_publickey_list()</strong>


id: ssh2_publickey_init
type: function
doc:
<comment>Description:</comment>
  Initialize Publickey subsystem
    
  
  Request the Publickey subsystem from an already connected SSH2 server.
  
  The publickey subsystem allows an already connected and authenticated client to manage the list of
  authorized public keys stored on the target server in an implementation agnostic manner. If the
  remote server does not support the publickey subsystem, the <strong>ssh2_publickey_init()</strong> function will
  return <info>false</info>.

<comment>Param:</comment>
  <info>resource</info>  <strong>$session</strong>  

<comment>Return:</comment>
  <info>resourcefalse</info>  Returns an <return>SSH2 Publickey Subsystem</return> resource for use with all other
                 ssh2_publickey_*() methods sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>ssh2_publickey_add()</strong>
   * <strong>ssh2_publickey_remove()</strong>
   * <strong>ssh2_publickey_list()</strong>


id: ssh2_publickey_list
type: function
doc:
<comment>Description:</comment>
  List currently authorized publickeys
    
  
  List currently authorized publickeys.

<comment>Param:</comment>
  <info>resource</info>  <strong>$pkey</strong>  Publickey Subsystem resource

<comment>Return:</comment>
  <info>array</info>  Returns a numerically indexed array of keys, each of which is an associative array
         containing: name, blob, and attrs elements.
         
         Publickey elementsArray KeyMeaningnameName of algorithm used by this publickey, for
         example: <return>ssh-dss</return> or <return>ssh-rsa</return>.blobPublickey blob as raw binary data.attrsAttributes assigned
         to this publickey. The most common attribute, and the only one supported by publickey
         version 1 servers, is <return>comment</return>, which may be any freeform string.

<comment>See Also:</comment>
   * <strong>ssh2_publickey_init()</strong>
   * <strong>ssh2_publickey_add()</strong>
   * <strong>ssh2_publickey_remove()</strong>


id: ssh2_publickey_remove
type: function
doc:
<comment>Description:</comment>
  Remove an authorized publickey
    
  
  Removes an authorized publickey.

<comment>Param:</comment>
  <info>resource</info>  <strong>$pkey    </strong>  Publickey Subsystem Resource
  <info>string  </info>  <strong>$algoname</strong>  Publickey algorithm (e.g.): ssh-dss, ssh-rsa
  <info>string  </info>  <strong>$blob    </strong>  Publickey blob as raw binary data

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>ssh2_publickey_init()</strong>
   * <strong>ssh2_publickey_add()</strong>
   * <strong>ssh2_publickey_list()</strong>


id: ssh2_scp_recv
type: function
doc:
<comment>Description:</comment>
  Request a file via SCP
  
  Copy a file from the remote server to the local filesystem using the SCP protocol.

<comment>Param:</comment>
  <info>resource</info>  <strong>$session    </strong>  An SSH connection link identifier, obtained from a call to <strong>ssh2_connect()</strong>.
  <info>string  </info>  <strong>$remote_file</strong>  Path to the remote file.
  <info>string  </info>  <strong>$local_file </strong>  Path to the local file.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>ssh2_scp_send()</strong>
   * <strong>copy()</strong>


id: ssh2_scp_send
type: function
doc:
<comment>Description:</comment>
  Send a file via SCP
  
  Copy a file from the local filesystem to the remote server using the SCP protocol.

<comment>Param:</comment>
  <info>resource</info>  <strong>$session    </strong>  An SSH connection link identifier, obtained from a call to <strong>ssh2_connect()</strong>.
  <info>string  </info>  <strong>$local_file </strong>  Path to the local file.
  <info>string  </info>  <strong>$remote_file</strong>  Path to the remote file.
  <info>int     </info>  <strong>$create_mode</strong>  The file will be created with the mode specified by <strong>$create_mode</strong>.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>ssh2_scp_recv()</strong>
   * <strong>copy()</strong>


id: ssh2_sftp
type: function
doc:
<comment>Description:</comment>
  Initialize SFTP subsystem
  
  Request the SFTP subsystem from an already connected SSH2 server.

<comment>Param:</comment>
  <info>resource</info>  <strong>$session</strong>  An SSH connection link identifier, obtained from a call to <strong>ssh2_connect()</strong>.

<comment>Return:</comment>
  <info>resourcefalse</info>  This method returns an <return>SSH2 SFTP</return> resource for use with all other ssh2_sftp_*()
                 methods and the ssh2.sftp:// fopen wrapper, sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>ssh2_scp_recv()</strong>
   * <strong>ssh2_scp_send()</strong>


id: ssh2_sftp_chmod
type: function
doc:
<comment>Description:</comment>
  Changes file mode
  
  Attempts to change the mode of the specified file to that given in <strong>$mode</strong>.

<comment>Param:</comment>
  <info>resource</info>  <strong>$sftp    </strong>  An SSH2 SFTP resource opened by <strong>ssh2_sftp()</strong>.
  <info>string  </info>  <strong>$filename</strong>  Path to the file.
  <info>int     </info>  <strong>$mode    </strong>  Permissions on the file. See the <strong>chmod()</strong> for more details on this parameter.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>chmod()</strong>
   * <strong>ssh2_sftp()</strong>
   * <strong>ssh2_connect()</strong>


id: ssh2_sftp_lstat
type: function
doc:
<comment>Description:</comment>
  Stat a symbolic link
  
  Stats a symbolic link on the remote filesystem without following the link.
  
  This function is similar to using the <strong>lstat()</strong> function with the ssh2.sftp:// wrapper in PHP 5 and
  returns the same values.

<comment>Param:</comment>
  <info>resource</info>  <strong>$sftp</strong>  An SSH2 SFTP resource opened by <strong>ssh2_sftp()</strong>.
  <info>string  </info>  <strong>$path</strong>  Path to the remote symbolic link.

<comment>Return:</comment>
  <info>array</info>  See the documentation for <strong>stat()</strong> for details on the values which may be returned.

<comment>See Also:</comment>
   * <strong>ssh2_sftp_stat()</strong>
   * <strong>lstat()</strong>
   * <strong>stat()</strong>


id: ssh2_sftp_mkdir
type: function
doc:
<comment>Description:</comment>
  Create a directory
  
  Creates a directory on the remote file server with permissions set to <strong>$mode</strong>.
  
  This function is similar to using <strong>mkdir()</strong> with the ssh2.sftp:// wrapper.

<comment>Param:</comment>
  <info>resource</info>  <strong>$sftp     </strong>  An SSH2 SFTP resource opened by <strong>ssh2_sftp()</strong>.
  <info>string  </info>  <strong>$dirname  </strong>  Path of the new directory.
  <info>int     </info>  <strong>$mode     </strong>  Permissions on the new directory.
  <info>bool    </info>  <strong>$recursive</strong>  If <strong>$recursive</strong> is <info>true</info> any parent directories required for <strong>$dirname</strong> will be
                        automatically created as well.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>mkdir()</strong>
   * <strong>ssh2_sftp_rmdir()</strong>


id: ssh2_sftp_readlink
type: function
doc:
<comment>Description:</comment>
  Return the target of a symbolic link
  
  Returns the target of a symbolic link.

<comment>Param:</comment>
  <info>resource</info>  <strong>$sftp</strong>  An SSH2 SFTP resource opened by <strong>ssh2_sftp()</strong>.
  <info>string  </info>  <strong>$link</strong>  Path of the symbolic link.

<comment>Return:</comment>
  <info>string</info>  Returns the target of the symbolic <strong>$link</strong>.

<comment>See Also:</comment>
   * <strong>readlink()</strong>
   * <strong>ssh2_sftp_symlink()</strong>


id: ssh2_sftp_realpath
type: function
doc:
<comment>Description:</comment>
  Resolve the realpath of a provided path string
  
  Translates <strong>$filename</strong> into the effective real path on the remote filesystem.

<comment>Param:</comment>
  <info>resource</info>  <strong>$sftp    </strong>  An SSH2 SFTP resource opened by <strong>ssh2_sftp()</strong>.
  <info>string  </info>  <strong>$filename</strong>  

<comment>Return:</comment>
  <info>string</info>  Returns the real path as a string.

<comment>See Also:</comment>
   * <strong>realpath()</strong>
   * <strong>ssh2_sftp_symlink()</strong>
   * <strong>ssh2_sftp_readlink()</strong>


id: ssh2_sftp_rename
type: function
doc:
<comment>Description:</comment>
  Rename a remote file
  
  Renames a file on the remote filesystem.

<comment>Param:</comment>
  <info>resource</info>  <strong>$sftp</strong>  An SSH2 SFTP resource opened by <strong>ssh2_sftp()</strong>.
  <info>string  </info>  <strong>$from</strong>  The current file that is being renamed.
  <info>string  </info>  <strong>$to  </strong>  The new file name that replaces <strong>$from</strong>.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>rename()</strong>


id: ssh2_sftp_rmdir
type: function
doc:
<comment>Description:</comment>
  Remove a directory
  
  Removes a directory from the remote file server.
  
  This function is similar to using <strong>rmdir()</strong> with the ssh2.sftp:// wrapper.

<comment>Param:</comment>
  <info>resource</info>  <strong>$sftp   </strong>  An SSH2 SFTP resource opened by <strong>ssh2_sftp()</strong>.
  <info>string  </info>  <strong>$dirname</strong>  

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>rmdir()</strong>
   * <strong>ssh2_sftp_mkdir()</strong>


id: ssh2_sftp_stat
type: function
doc:
<comment>Description:</comment>
  Stat a file on a remote filesystem
  
  Stats a file on the remote filesystem following any symbolic links.
  
  This function is similar to using the <strong>stat()</strong> function with the ssh2.sftp:// wrapper in PHP 5 and
  returns the same values.

<comment>Param:</comment>
  <info>resource</info>  <strong>$sftp</strong>  An SSH2 SFTP resource opened by <strong>ssh2_sftp()</strong>.
  <info>string  </info>  <strong>$path</strong>  

<comment>Return:</comment>
  <info>array</info>  See the documentation for <strong>stat()</strong> for details on the values which may be returned.

<comment>See Also:</comment>
   * <strong>ssh2_sftp_lstat()</strong>
   * <strong>lstat()</strong>
   * <strong>stat()</strong>


id: ssh2_sftp_symlink
type: function
doc:
<comment>Description:</comment>
  Create a symlink
  
  Creates a symbolic link named <strong>$link</strong> on the remote filesystem pointing to <strong>$target</strong>.

<comment>Param:</comment>
  <info>resource</info>  <strong>$sftp  </strong>  An SSH2 SFTP resource opened by <strong>ssh2_sftp()</strong>.
  <info>string  </info>  <strong>$target</strong>  Target of the symbolic link.
  <info>string  </info>  <strong>$link  </strong>  

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>ssh2_sftp_readlink()</strong>
   * <strong>symlink()</strong>


id: ssh2_sftp_unlink
type: function
doc:
<comment>Description:</comment>
  Delete a file
  
  Deletes a file on the remote filesystem.

<comment>Param:</comment>
  <info>resource</info>  <strong>$sftp    </strong>  An SSH2 SFTP resource opened by <strong>ssh2_sftp()</strong>.
  <info>string  </info>  <strong>$filename</strong>  

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>unlink()</strong>


id: ssh2_shell
type: function
doc:
<comment>Description:</comment>
  Request an interactive shell
  
  Open a shell at the remote end and allocate a stream for it.

<comment>Param:</comment>
  <info>resource</info>  <strong>$session          </strong>  An SSH connection link identifier, obtained from a call to
                                <strong>ssh2_connect()</strong>.
  <info>string  </info>  <strong>$term_type        </strong>  <strong>$term_type</strong> should correspond to one of the entries in the target
                                system's <return>/etc/termcap</return> file.
  <info>array   </info>  <strong>$env              </strong>  <strong>$env</strong> may be passed as an associative array of name/value pairs to
                                set in the target environment.
  <info>int     </info>  <strong>$width            </strong>  Width of the virtual terminal.
  <info>int     </info>  <strong>$height           </strong>  Height of the virtual terminal.
  <info>int     </info>  <strong>$width_height_type</strong>  <strong>$width_height_type</strong> should be one of <info>SSH2_TERM_UNIT_CHARS</info> or
                                <info>SSH2_TERM_UNIT_PIXELS</info>.

<comment>Return:</comment>
  <info>resource</info>  

<comment>See Also:</comment>
   * <strong>ssh2_exec()</strong>
   * <strong>ssh2_tunnel()</strong>
   * <strong>ssh2_fetch_stream()</strong>


id: ssh2_tunnel
type: function
doc:
<comment>Description:</comment>
  Open a tunnel through a remote server
  
  Open a socket stream to an arbitrary host/port by way of the currently connected SSH server.

<comment>Param:</comment>
  <info>resource</info>  <strong>$session</strong>  An SSH connection link identifier, obtained from a call to <strong>ssh2_connect()</strong>.
  <info>string  </info>  <strong>$host   </strong>  
  <info>int     </info>  <strong>$port   </strong>  

<comment>Return:</comment>
  <info>resource</info>  

<comment>See Also:</comment>
   * <strong>ssh2_connect()</strong>
   * <strong>fsockopen()</strong>


id: stat
type: function
doc:
<comment>Description:</comment>
  Gives information about a file
  
  Gathers the statistics of the file named by <strong>$filename</strong>.  If <strong>$filename</strong> is a symbolic link,
  statistics are from the file itself, not the symlink. Prior to PHP 7.4.0, on Windows NTS builds
  the <return>size</return>, <return>atime</return>, <return>mtime</return> and <return>ctime</return> statistics have been from the symlink, in this case.
  
  <strong>lstat()</strong> is identical to <strong>stat()</strong> except it would instead be based off the symlinks status.

<comment>Param:</comment>
  <info>string</info>  <strong>$filename</strong>  Path to the file.

<comment>Return:</comment>
  <info>arrayfalse</info>  <strong>stat()</strong> and <strong>fstat()</strong> result formatNumericAssociativeDescription0devdevice number
              ***1inoinode number ****2modeinode protection mode3nlinknumber of links4uiduserid of
              owner *5gidgroupid of owner *6rdevdevice type, if inode device7sizesize in
              bytes8atimetime of last access (Unix timestamp)9mtimetime of last modification (Unix
              timestamp)10ctimetime of last inode change (Unix timestamp)11blksizeblocksize of
              filesystem IO **12blocksnumber of 512-byte blocks allocated **
              
              * On Windows this will always be <return>0</return>.
              
              ** Only valid on systems supporting the st_blksize type - other systems (e.g. Windows)
              return <return>-1</return>.
              
              *** On Windows, as of PHP 7.4.0, this is the serial number of the volume that contains
              the file, which is a 64-bit unsigned integer, so may overflow. Previously, it was the
              numeric representation of the drive letter (e.g. <return>2</return> for <return>C:</return>) for <strong>stat()</strong>, and <return>0</return> for
              <strong>lstat()</strong>.
              
              **** On Windows, as of PHP 7.4.0, this is the identifier associated with the file,
              which is a 64-bit unsigned integer, so may overflow. Previously, it was always <return>0</return>.
              
              The value of <return>mode</return> contains information read by several functions.  When written in
              octal, starting from the right, the first three digits are returned by <strong>chmod()</strong>. The
              next digit is ignored by PHP. The next two digits indicate the file type: <return>mode</return> file
              types<return>mode</return> in octalMeaning<info>0120000</info>link<info>0100000</info>regular file<info>0060000</info>block
              device<info>0040000</info>directory<info>0010000</info>fifo So for example a regular file could be <info>0100644</info> and a
              directory could be <info>0040755</info>.
              
              In case of error, <strong>stat()</strong> returns <info>false</info>.
              
              Deoarece tipul întreg al PHP este cu semn și multe platforme utilizează întregi
              de 32 de biți, unele funcții ale sistemului de fișiere pot întoarce rezultate
              neașteptate pentru fișiere ce depășesc 2GB.

<comment>See Also:</comment>
   * <strong>lstat()</strong>
   * <strong>fstat()</strong>
   * <strong>filemtime()</strong>
   * <strong>filegroup()</strong>


id: stats_absolute_deviation
type: function
doc:
<comment>Description:</comment>
  Returns the absolute deviation of an array of values
  
  Returns the absolute deviation of the values in <strong>$a</strong>.

<comment>Param:</comment>
  <info>array</info>  <strong>$a</strong>  The input array

<comment>Return:</comment>
  <info>float</info>  Returns the absolute deviation of the values in <strong>$a</strong>, or <info>false</info> if <strong>$a</strong> is empty or is not an
         array.


id: stats_cdf_beta
type: function
doc:
<comment>Description:</comment>
  Calculates any one parameter of the beta distribution given values for the others
  
  Returns the cumulative distribution function, its inverse, or one of its parameters, of the beta
  distribution. The kind of the return value and parameters (<strong>$par1</strong>, <strong>$par2</strong>, and <strong>$par3</strong>) are determined
  by <strong>$which</strong>.
  
  The following table lists the return value and parameters by <strong>$which</strong>. CDF, x, alpha, and beta
  denotes cumulative distribution function, the value of the random variable, and shape parameters
  of the beta distribution, respectively. Return value and parameters<strong>$which</strong>Return
  value<strong>$par1</strong><strong>$par2</strong><strong>$par3</strong>1CDFxalphabeta2xCDFalphabeta3alphaxCDFbeta4betaxCDFalpha

<comment>Param:</comment>
  <info>float</info>  <strong>$par1 </strong>  The first parameter
  <info>float</info>  <strong>$par2 </strong>  The second parameter
  <info>float</info>  <strong>$par3 </strong>  The third parameter
  <info>int  </info>  <strong>$which</strong>  The flag to determine what to be calculated

<comment>Return:</comment>
  <info>float</info>  Returns CDF, x, alpha, or beta, determined by <strong>$which</strong>.


id: stats_cdf_binomial
type: function
doc:
<comment>Description:</comment>
  Calculates any one parameter of the binomial distribution given values for the others
  
  Returns the cumulative distribution function, its inverse, or one of its parameters, of the
  binomial distribution. The kind of the return value and parameters (<strong>$par1</strong>, <strong>$par2</strong>, and <strong>$par3</strong>) are
  determined by <strong>$which</strong>.
  
  The following table lists the return value and parameters by <strong>$which</strong>. CDF, x, n, and p denotes
  cumulative distribution function, the number of successes, the number of trials, and the success
  rate for each trial, respectively. Return value and parameters<strong>$which</strong>Return
  value<strong>$par1</strong><strong>$par2</strong><strong>$par3</strong>1CDFxnp2xCDFnp3nxCDFp4pxCDFn

<comment>Param:</comment>
  <info>float</info>  <strong>$par1 </strong>  The first parameter
  <info>float</info>  <strong>$par2 </strong>  The second parameter
  <info>float</info>  <strong>$par3 </strong>  The third parameter
  <info>int  </info>  <strong>$which</strong>  The flag to determine what to be calculated

<comment>Return:</comment>
  <info>float</info>  Returns CDF, x, n, or p, determined by <strong>$which</strong>.


id: stats_cdf_cauchy
type: function
doc:
<comment>Description:</comment>
  Calculates any one parameter of the Cauchy distribution given values for the others
  
  Returns the cumulative distribution function, its inverse, or one of its parameters, of the Cauchy
  distribution. The kind of the return value and parameters (<strong>$par1</strong>, <strong>$par2</strong>, and <strong>$par3</strong>) are determined
  by <strong>$which</strong>.
  
  The following table lists the return value and parameters by <strong>$which</strong>. CDF, x, x0, and gamma denotes
  cumulative distribution function, the value of the random variable, the location and the scale
  parameter of the Cauchy distribution, respectively. Return value and parameters<strong>$which</strong>Return
  value<strong>$par1</strong><strong>$par2</strong><strong>$par3</strong>1CDFxx0gamma2xCDFx0gamma3x0xCDFgamma4gammaxCDFx0

<comment>Param:</comment>
  <info>float</info>  <strong>$par1 </strong>  The first parameter
  <info>float</info>  <strong>$par2 </strong>  The second parameter
  <info>float</info>  <strong>$par3 </strong>  The third parameter
  <info>int  </info>  <strong>$which</strong>  The flag to determine what to be calculated

<comment>Return:</comment>
  <info>float</info>  Returns CDF, x, x0, or gamma, determined by <strong>$which</strong>.


id: stats_cdf_chisquare
type: function
doc:
<comment>Description:</comment>
  Calculates any one parameter of the chi-square distribution given values for the others
  
  Returns the cumulative distribution function, its inverse, or one of its parameters, of the
  chi-square distribution. The kind of the return value and parameters (<strong>$par1</strong> and <strong>$par2</strong>) are
  determined by <strong>$which</strong>.
  
  The following table lists the return value and parameters by <strong>$which</strong>. CDF, x, and k denotes
  cumulative distribution function, the value of the random variable, and the degree of freedom of
  the chi-square distribution, respectively. Return value and parameters<strong>$which</strong>Return
  value<strong>$par1</strong><strong>$par2</strong>1CDFxk2xCDFk3kxCDF

<comment>Param:</comment>
  <info>float</info>  <strong>$par1 </strong>  The first parameter
  <info>float</info>  <strong>$par2 </strong>  The second parameter
  <info>int  </info>  <strong>$which</strong>  The flag to determine what to be calculated

<comment>Return:</comment>
  <info>float</info>  Returns CDF, x, or k, determined by <strong>$which</strong>.


id: stats_cdf_exponential
type: function
doc:
<comment>Description:</comment>
  Calculates any one parameter of the exponential distribution given values for the others
  
  Returns the cumulative distribution function, its inverse, or one of its parameters, of the
  exponential distribution. The kind of the return value and parameters (<strong>$par1</strong> and <strong>$par2</strong>) are
  determined by <strong>$which</strong>.
  
  The following table lists the return value and parameters by <strong>$which</strong>. CDF, x, and lambda denotes
  cumulative distribution function, the value of the random variable, and the rate parameter of the
  exponential distribution, respectively. Return value and parameters<strong>$which</strong>Return
  value<strong>$par1</strong><strong>$par2</strong>1CDFxlambda2xCDFlambda3lambdaxCDF

<comment>Param:</comment>
  <info>float</info>  <strong>$par1 </strong>  The first parameter
  <info>float</info>  <strong>$par2 </strong>  The second parameter
  <info>int  </info>  <strong>$which</strong>  The flag to determine what to be calculated

<comment>Return:</comment>
  <info>float</info>  Returns CDF, x, or lambda, determined by <strong>$which</strong>.


id: stats_cdf_f
type: function
doc:
<comment>Description:</comment>
  Calculates any one parameter of the F distribution given values for the others
  
  Returns the cumulative distribution function, its inverse, or one of its parameters, of the F
  distribution. The kind of the return value and parameters (<strong>$par1</strong>, <strong>$par2</strong>, and <strong>$par3</strong>) are determined
  by <strong>$which</strong>.
  
  The following table lists the return value and parameters by <strong>$which</strong>. CDF, x, d1, and d2 denotes
  cumulative distribution function, the value of the random variable, and the degree of freedoms of
  the F distribution, respectively. Return value and parameters<strong>$which</strong>Return
  value<strong>$par1</strong><strong>$par2</strong><strong>$par3</strong>1CDFxd1d22xCDFd1d23d1xCDFd24d2xCDFd1

<comment>Param:</comment>
  <info>float</info>  <strong>$par1 </strong>  The first parameter
  <info>float</info>  <strong>$par2 </strong>  The second parameter
  <info>float</info>  <strong>$par3 </strong>  The third parameter
  <info>int  </info>  <strong>$which</strong>  The flag to determine what to be calculated

<comment>Return:</comment>
  <info>float</info>  Returns CDF, x, d1, or d2, determined by <strong>$which</strong>.


id: stats_cdf_gamma
type: function
doc:
<comment>Description:</comment>
  Calculates any one parameter of the gamma distribution given values for the others
  
  Returns the cumulative distribution function, its inverse, or one of its parameters, of the gamma
  distribution. The kind of the return value and parameters (<strong>$par1</strong>, <strong>$par2</strong>, and <strong>$par3</strong>) are determined
  by <strong>$which</strong>.
  
  The following table lists the return value and parameters by <strong>$which</strong>. CDF, x, k, and theta denotes
  cumulative distribution function, the value of the random variable, and the shape and the scale
  parameter of the gamma distribution, respectively. Return value and parameters<strong>$which</strong>Return
  value<strong>$par1</strong><strong>$par2</strong><strong>$par3</strong>1CDFxktheta2xCDFktheta3kxCDFtheta4thetaxCDFk

<comment>Param:</comment>
  <info>float</info>  <strong>$par1 </strong>  The first parameter
  <info>float</info>  <strong>$par2 </strong>  The second parameter
  <info>float</info>  <strong>$par3 </strong>  The third parameter
  <info>int  </info>  <strong>$which</strong>  The flag to determine what to be calculated

<comment>Return:</comment>
  <info>float</info>  Returns CDF, x, k, or theta, determined by <strong>$which</strong>.


id: stats_cdf_laplace
type: function
doc:
<comment>Description:</comment>
  Calculates any one parameter of the Laplace distribution given values for the others
  
  Returns the cumulative distribution function, its inverse, or one of its parameters, of the
  Laplace distribution. The kind of the return value and parameters (<strong>$par1</strong>, <strong>$par2</strong>, and <strong>$par3</strong>) are
  determined by <strong>$which</strong>.
  
  The following table lists the return value and parameters by <strong>$which</strong>. CDF, x, mu, and b denotes
  cumulative distribution function, the value of the random variable, and the location and the scale
  parameter of the Laplace distribution, respectively. Return value and parameters<strong>$which</strong>Return
  value<strong>$par1</strong><strong>$par2</strong><strong>$par3</strong>1CDFxmub2xCDFmub3muxCDFb4bxCDFmu

<comment>Param:</comment>
  <info>float</info>  <strong>$par1 </strong>  The first parameter
  <info>float</info>  <strong>$par2 </strong>  The second parameter
  <info>float</info>  <strong>$par3 </strong>  The third parameter
  <info>int  </info>  <strong>$which</strong>  The flag to determine what to be calculated

<comment>Return:</comment>
  <info>float</info>  Returns CDF, x, mu, or b, determined by <strong>$which</strong>.


id: stats_cdf_logistic
type: function
doc:
<comment>Description:</comment>
  Calculates any one parameter of the logistic distribution given values for the others
  
  Returns the cumulative distribution function, its inverse, or one of its parameters, of the
  logistic distribution. The kind of the return value and parameters (<strong>$par1</strong>, <strong>$par2</strong>, and <strong>$par3</strong>) are
  determined by <strong>$which</strong>.
  
  The following table lists the return value and parameters by <strong>$which</strong>. CDF, x, mu, and s denotes
  cumulative distribution function, the value of the random variable, and the location and the scale
  parameter of the logistic distribution, respectively. Return value and parameters<strong>$which</strong>Return
  value<strong>$par1</strong><strong>$par2</strong><strong>$par3</strong>1CDFxmus2xCDFmus3muxCDFs4sxCDFmu

<comment>Param:</comment>
  <info>float</info>  <strong>$par1 </strong>  The first parameter
  <info>float</info>  <strong>$par2 </strong>  The second parameter
  <info>float</info>  <strong>$par3 </strong>  The third parameter
  <info>int  </info>  <strong>$which</strong>  The flag to determine what to be calculated

<comment>Return:</comment>
  <info>float</info>  Returns CDF, x, mu, or s, determined by <strong>$which</strong>.


id: stats_cdf_negative_binomial
type: function
doc:
<comment>Description:</comment>
  Calculates any one parameter of the negative binomial distribution given values for the others
  
  Returns the cumulative distribution function, its inverse, or one of its parameters, of the
  negative binomial distribution. The kind of the return value and parameters (<strong>$par1</strong>, <strong>$par2</strong>, and
  <strong>$par3</strong>) are determined by <strong>$which</strong>.
  
  The following table lists the return value and parameters by <strong>$which</strong>. CDF, x, r, and p denotes
  cumulative distribution function, the number of failure, the number of success, and the success
  rate for each trial, respectively. Return value and parameters<strong>$which</strong>Return
  value<strong>$par1</strong><strong>$par2</strong><strong>$par3</strong>1CDFxrp2xCDFrp3rxCDFp4pxCDFr

<comment>Param:</comment>
  <info>float</info>  <strong>$par1 </strong>  The first parameter
  <info>float</info>  <strong>$par2 </strong>  The second parameter
  <info>float</info>  <strong>$par3 </strong>  The third parameter
  <info>int  </info>  <strong>$which</strong>  The flag to determine what to be calculated

<comment>Return:</comment>
  <info>float</info>  Returns CDF, x, r, or p, determined by <strong>$which</strong>.


id: stats_cdf_noncentral_chisquare
type: function
doc:
<comment>Description:</comment>
  Calculates any one parameter of the non-central chi-square distribution given values for the
  others
  
  Returns the cumulative distribution function, its inverse, or one of its parameters, of the
  non-central chi-square distribution. The kind of the return value and parameters (<strong>$par1</strong>, <strong>$par2</strong>,
  and <strong>$par3</strong>) are determined by <strong>$which</strong>.
  
  The following table lists the return value and parameters by <strong>$which</strong>. CDF, x, k, and lambda denotes
  cumulative distribution function, the value of the random variable, the degree of freedom and the
  non-centrality parameter of the distribution, respectively. Return value and
  parameters<strong>$which</strong>Return value<strong>$par1</strong><strong>$par2</strong><strong>$par3</strong>1CDFxklambda2xCDFklambda3kxCDFlambda4lambdaxCDFk

<comment>Param:</comment>
  <info>float</info>  <strong>$par1 </strong>  The first parameter
  <info>float</info>  <strong>$par2 </strong>  The second parameter
  <info>float</info>  <strong>$par3 </strong>  The third parameter
  <info>int  </info>  <strong>$which</strong>  The flag to determine what to be calculated

<comment>Return:</comment>
  <info>float</info>  Returns CDF, x, k, or lambda, determined by <strong>$which</strong>.


id: stats_cdf_noncentral_f
type: function
doc:
<comment>Description:</comment>
  Calculates any one parameter of the non-central F distribution given values for the others
  
  Returns the cumulative distribution function, its inverse, or one of its parameters, of the
  non-central F distribution. The kind of the return value and parameters (<strong>$par1</strong>, <strong>$par2</strong>, <strong>$par3</strong>, and
  <strong>$par4</strong>) are determined by <strong>$which</strong>.
  
  The following table lists the return value and parameters by <strong>$which</strong>. CDF, x, nu1, nu2, and lambda
  denotes cumulative distribution function, the value of the random variable, the degree of freedoms
  and the non-centrality parameter of the distribution, respectively. Return value and
  parameters<strong>$which</strong>Return
  value<strong>$par1</strong><strong>$par2</strong><strong>$par3</strong><strong>$par4</strong>1CDFxnu1nu2lambda2xCDFnu1nu2lambda3nu1xCDFnu2lambda4nu2xCDFnu1lambda5lambdaxCDFnu1nu2

<comment>Param:</comment>
  <info>float</info>  <strong>$par1 </strong>  The first parameter
  <info>float</info>  <strong>$par2 </strong>  The second parameter
  <info>float</info>  <strong>$par3 </strong>  The third parameter
  <info>float</info>  <strong>$par4 </strong>  The fourth parameter
  <info>int  </info>  <strong>$which</strong>  The flag to determine what to be calculated

<comment>Return:</comment>
  <info>float</info>  Returns CDF, x, nu1, nu2, or lambda, determined by <strong>$which</strong>.


id: stats_cdf_noncentral_t
type: function
doc:
<comment>Description:</comment>
  Calculates any one parameter of the non-central t-distribution give values for the others
  
  Returns the cumulative distribution function, its inverse, or one of its parameters, of the
  non-central t-distribution. The kind of the return value and parameters (<strong>$par1</strong>, <strong>$par2</strong>, and <strong>$par3</strong>)
  are determined by <strong>$which</strong>.
  
  The following table lists the return value and parameters by <strong>$which</strong>. CDF, x, nu, and mu denotes
  cumulative distribution function, the value of the random variable, the degrees of freedom and the
  non-centrality parameter of the distribution, respectively. Return value and
  parameters<strong>$which</strong>Return value<strong>$par1</strong><strong>$par2</strong><strong>$par3</strong>1CDFxnumu2xCDFnumu3nuxCDFmu4muxCDFnu

<comment>Param:</comment>
  <info>float</info>  <strong>$par1 </strong>  The first parameter
  <info>float</info>  <strong>$par2 </strong>  The second parameter
  <info>float</info>  <strong>$par3 </strong>  The third parameter
  <info>int  </info>  <strong>$which</strong>  The flag to determine what to be calculated

<comment>Return:</comment>
  <info>float</info>  Returns CDF, x, nu, or mu, determined by <strong>$which</strong>.


id: stats_cdf_normal
type: function
doc:
<comment>Description:</comment>
  Calculates any one parameter of the normal distribution given values for the others
  
  Returns the cumulative distribution function, its inverse, or one of its parameters, of the normal
  distribution. The kind of the return value and parameters (<strong>$par1</strong>, <strong>$par2</strong>, and <strong>$par3</strong>) are determined
  by <strong>$which</strong>.
  
  The following table lists the return value and parameters by <strong>$which</strong>. CDF, x, mu, and sigma denotes
  cumulative distribution function, the value of the random variable, the mean and the standard
  deviation of the normal distribution, respectively. Return value and parameters<strong>$which</strong>Return
  value<strong>$par1</strong><strong>$par2</strong><strong>$par3</strong>1CDFxmusigma2xCDFmusigma3muxCDFsigma4sigmaxCDFmu

<comment>Param:</comment>
  <info>float</info>  <strong>$par1 </strong>  The first parameter
  <info>float</info>  <strong>$par2 </strong>  The second parameter
  <info>float</info>  <strong>$par3 </strong>  The third parameter
  <info>int  </info>  <strong>$which</strong>  The flag to determine what to be calculated

<comment>Return:</comment>
  <info>float</info>  Returns CDF, x, mu, or sigma, determined by <strong>$which</strong>.


id: stats_cdf_poisson
type: function
doc:
<comment>Description:</comment>
  Calculates any one parameter of the Poisson distribution given values for the others
  
  Returns the cumulative distribution function, its inverse, or one of its parameters, of the
  Poisson distribution. The kind of the return value and parameters (<strong>$par1</strong> and <strong>$par2</strong>) are determined
  by <strong>$which</strong>.
  
  The following table lists the return value and parameters by <strong>$which</strong>. CDF, x, and lambda denotes
  cumulative distribution function, the value of the random variable, and the parameter of the
  Poisson distribution, respectively. Return value and parameters<strong>$which</strong>Return
  value<strong>$par1</strong><strong>$par2</strong>1CDFxlambda2xCDFlambda3lambdaxCDF

<comment>Param:</comment>
  <info>float</info>  <strong>$par1 </strong>  The first parameter
  <info>float</info>  <strong>$par2 </strong>  The second parameter
  <info>int  </info>  <strong>$which</strong>  The flag to determine what to be calculated

<comment>Return:</comment>
  <info>float</info>  Returns CDF, x, or lambda, determined by <strong>$which</strong>.


id: stats_cdf_t
type: function
doc:
<comment>Description:</comment>
  Calculates any one parameter of the t-distribution given values for the others
  
  Returns the cumulative distribution function, its inverse, or one of its parameters, of the
  t-distribution. The kind of the return value and parameters (<strong>$par1</strong> and <strong>$par2</strong>) are determined by
  <strong>$which</strong>.
  
  The following table lists the return value and parameters by <strong>$which</strong>. CDF, x, and nu denotes
  cumulative distribution function, the value of the random variable, and the degrees of freedom of
  the t-distribution, respectively. Return value and parameters<strong>$which</strong>Return
  value<strong>$par1</strong><strong>$par2</strong>1CDFxnu2xCDFnu3nuxCDF

<comment>Param:</comment>
  <info>float</info>  <strong>$par1 </strong>  The first parameter
  <info>float</info>  <strong>$par2 </strong>  The second parameter
  <info>int  </info>  <strong>$which</strong>  The flag to determine what to be calculated

<comment>Return:</comment>
  <info>float</info>  Returns CDF, x, or nu, determined by <strong>$which</strong>.


id: stats_cdf_uniform
type: function
doc:
<comment>Description:</comment>
  Calculates any one parameter of the uniform distribution given values for the others
  
  Returns the cumulative distribution function, its inverse, or one of its parameters, of the
  uniform distribution. The kind of the return value and parameters (<strong>$par1</strong>, <strong>$par2</strong>, and <strong>$par3</strong>) are
  determined by <strong>$which</strong>.
  
  The following table lists the return value and parameters by <strong>$which</strong>. CDF, x, a, and b denotes
  cumulative distribution function, the value of the random variable, the lower bound and the higher
  bound of the uniform distribution, respectively. Return value and parameters<strong>$which</strong>Return
  value<strong>$par1</strong><strong>$par2</strong><strong>$par3</strong>1CDFxab2xCDFab3axCDFb4bxCDFa

<comment>Param:</comment>
  <info>float</info>  <strong>$par1 </strong>  The first parameter
  <info>float</info>  <strong>$par2 </strong>  The second parameter
  <info>float</info>  <strong>$par3 </strong>  The third parameter
  <info>int  </info>  <strong>$which</strong>  The flag to determine what to be calculated

<comment>Return:</comment>
  <info>float</info>  Returns CDF, x, a, or b, determined by <strong>$which</strong>.


id: stats_cdf_weibull
type: function
doc:
<comment>Description:</comment>
  Calculates any one parameter of the Weibull distribution given values for the others
  
  Returns the cumulative distribution function, its inverse, or one of its parameters, of the
  Weibull distribution. The kind of the return value and parameters (<strong>$par1</strong>, <strong>$par2</strong>, and <strong>$par3</strong>) are
  determined by <strong>$which</strong>.
  
  The following table lists the return value and parameters by <strong>$which</strong>. CDF, x, k, and lambda denotes
  cumulative distribution function, the value of the random variable, the shape and the scale
  parameter of the Weibull distribution, respectively. Return value and parameters<strong>$which</strong>Return
  value<strong>$par1</strong><strong>$par2</strong><strong>$par3</strong>1CDFxklambda2xCDFklambda3kxCDFlambda4lambdaxCDFk

<comment>Param:</comment>
  <info>float</info>  <strong>$par1 </strong>  The first parameter
  <info>float</info>  <strong>$par2 </strong>  The second parameter
  <info>float</info>  <strong>$par3 </strong>  The third parameter
  <info>int  </info>  <strong>$which</strong>  The flag to determine what to be calculated

<comment>Return:</comment>
  <info>float</info>  Returns CDF, x, k, or lambda, determined by <strong>$which</strong>.


id: stats_covariance
type: function
doc:
<comment>Description:</comment>
  Computes the covariance of two data sets
  
  Returns the covariance of <strong>$a</strong> and <strong>$b</strong>.

<comment>Param:</comment>
  <info>array</info>  <strong>$a</strong>  The first array
  <info>array</info>  <strong>$b</strong>  The second array

<comment>Return:</comment>
  <info>float</info>  Returns the covariance of <strong>$a</strong> and <strong>$b</strong>, or <info>false</info> on failure.


id: stats_dens_beta
type: function
doc:
<comment>Description:</comment>
  Probability density function of the beta distribution
  
  Returns the probability density at <strong>$x</strong>, where the random variable follows the beta distribution of
  which the shape parameters are <strong>$a</strong> and <strong>$b</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$x</strong>  The value at which the probability density is calculated
  <info>float</info>  <strong>$a</strong>  The shape parameter of the distribution
  <info>float</info>  <strong>$b</strong>  The shape parameter of the distribution

<comment>Return:</comment>
  <info>float</info>  The probability density at <strong>$x</strong> or <info>false</info> for failure.


id: stats_dens_cauchy
type: function
doc:
<comment>Description:</comment>
  Probability density function of the Cauchy distribution
  
  Returns the probability density at <strong>$x</strong>, where the random variable follows the Cauchy distribution
  whose location and scale are <strong>$ave</strong> and <strong>$stdev</strong>, respectively.

<comment>Param:</comment>
  <info>float</info>  <strong>$x    </strong>  The value at which the probability density is calculated
  <info>float</info>  <strong>$ave  </strong>  The location parameter of the distribution
  <info>float</info>  <strong>$stdev</strong>  The scale parameter of the distribution

<comment>Return:</comment>
  <info>float</info>  The probability density at <strong>$x</strong> or <info>false</info> for failure.


id: stats_dens_chisquare
type: function
doc:
<comment>Description:</comment>
  Probability density function of the chi-square distribution
  
  Returns the probability density at <strong>$x</strong>, where the random variable follows the chi-square
  distribution of which the degree of freedom is <strong>$dfr</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$x  </strong>  The value at which the probability density is calculated
  <info>float</info>  <strong>$dfr</strong>  The degree of freedom of the distribution

<comment>Return:</comment>
  <info>float</info>  The probability density at <strong>$x</strong> or <info>false</info> for failure.


id: stats_dens_exponential
type: function
doc:
<comment>Description:</comment>
  Probability density function of the exponential distribution
  
  Returns the probability density at <strong>$x</strong>, where the random variable follows the exponential
  distribution of which the scale is <strong>$scale</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$x    </strong>  The value at which the probability density is calculated
  <info>float</info>  <strong>$scale</strong>  The scale of the distribution

<comment>Return:</comment>
  <info>float</info>  The probability density at <strong>$x</strong> or <info>false</info> for failure.


id: stats_dens_f
type: function
doc:
<comment>Description:</comment>
  Probability density function of the F distribution
  
  Returns the probability density at <strong>$x</strong>, where the random variable follows the F distribution of
  which the degree of freedoms are <strong>$dfr1</strong> and <strong>$dfr2</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$x   </strong>  The value at which the probability density is calculated
  <info>float</info>  <strong>$dfr1</strong>  The degree of freedom of the distribution
  <info>float</info>  <strong>$dfr2</strong>  The degree of freedom of the distribution

<comment>Return:</comment>
  <info>float</info>  The probability density at <strong>$x</strong> or <info>false</info> for failure.


id: stats_dens_gamma
type: function
doc:
<comment>Description:</comment>
  Probability density function of the gamma distribution
  
  Returns the probability density at <strong>$x</strong>, where the random variable follows the gamma distribution of
  which the shape parameter is <strong>$shape</strong> and the scale parameter is <strong>$scale</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$x    </strong>  The value at which the probability density is calculated
  <info>float</info>  <strong>$shape</strong>  The shape parameter of the distribution
  <info>float</info>  <strong>$scale</strong>  The scale parameter of the distribution

<comment>Return:</comment>
  <info>float</info>  The probability density at <strong>$x</strong> or <info>false</info> for failure.


id: stats_dens_laplace
type: function
doc:
<comment>Description:</comment>
  Probability density function of the Laplace distribution
  
  Returns the probability density at <strong>$x</strong>, where the random variable follows the Laplace distribution
  of which the location parameter is <strong>$ave</strong> and the scale parameter is <strong>$stdev</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$x    </strong>  The value at which the probability density is calculated
  <info>float</info>  <strong>$ave  </strong>  The location parameter of the distribution
  <info>float</info>  <strong>$stdev</strong>  The shape parameter of the distribution

<comment>Return:</comment>
  <info>float</info>  The probability density at <strong>$x</strong> or <info>false</info> for failure.


id: stats_dens_logistic
type: function
doc:
<comment>Description:</comment>
  Probability density function of the logistic distribution
  
  Returns the probability density at <strong>$x</strong>, where the random variable follows the logistic distribution
  of which the location parameter is <strong>$ave</strong> and the scale parameter is <strong>$stdev</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$x    </strong>  The value at which the probability density is calculated
  <info>float</info>  <strong>$ave  </strong>  The location parameter of the distribution
  <info>float</info>  <strong>$stdev</strong>  The shape parameter of the distribution

<comment>Return:</comment>
  <info>float</info>  The probability density at <strong>$x</strong> or <info>false</info> for failure.


id: stats_dens_normal
type: function
doc:
<comment>Description:</comment>
  Probability density function of the normal distribution
  
  Returns the probability density at <strong>$x</strong>, where the random variable follows the normal distribution
  of which the mean is <strong>$ave</strong> and the standard deviation is <strong>$stdev</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$x    </strong>  The value at which the probability density is calculated
  <info>float</info>  <strong>$ave  </strong>  The mean of the distribution
  <info>float</info>  <strong>$stdev</strong>  The standard deviation of the distribution

<comment>Return:</comment>
  <info>float</info>  The probability density at <strong>$x</strong> or <info>false</info> for failure.


id: stats_dens_pmf_binomial
type: function
doc:
<comment>Description:</comment>
  Probability mass function of the binomial distribution
  
  Returns the probability mass at <strong>$x</strong>, where the random variable follows the binomial distribution of
  which the number of trials is <strong>$n</strong> and the success rate is <strong>$pi</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$x </strong>  The value at which the probability mass is calculated
  <info>float</info>  <strong>$n </strong>  The number of trials of the distribution
  <info>float</info>  <strong>$pi</strong>  The success rate of the distribution

<comment>Return:</comment>
  <info>float</info>  The probability mass at <strong>$x</strong> or <info>false</info> for failure.


id: stats_dens_pmf_hypergeometric
type: function
doc:
<comment>Description:</comment>
  Probability mass function of the hypergeometric distribution
  
  Returns the probability mass at <strong>$n1</strong>, where the random variable follows the hypergeometric
  distribution of which the number of failure is <strong>$n2</strong>, the number of success samples is <strong>$N1</strong>, and the
  number of failure samples is <strong>$N2</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$n1</strong>  The number of success, at which the probability mass is calculated
  <info>float</info>  <strong>$n2</strong>  The number of failure of the distribution
  <info>float</info>  <strong>$N1</strong>  The number of success samples of the distribution
  <info>float</info>  <strong>$N2</strong>  The number of failure samples of the distribution

<comment>Return:</comment>
  <info>float</info>  The probability mass at <strong>$n1</strong> or <info>false</info> for failure.


id: stats_dens_pmf_negative_binomial
type: function
doc:
<comment>Description:</comment>
  Probability mass function of the negative binomial distribution
  
  Returns the probability mass at <strong>$x</strong>, where the random variable follows the negative binomial
  distribution of which the number of the success is <strong>$n</strong> and the success rate is <strong>$pi</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$x </strong>  The value at which the probability mass is calculated
  <info>float</info>  <strong>$n </strong>  The number of the success of the distribution
  <info>float</info>  <strong>$pi</strong>  The success rate of the distribution

<comment>Return:</comment>
  <info>float</info>  The probability mass at <strong>$x</strong> or <info>false</info> for failure.


id: stats_dens_pmf_poisson
type: function
doc:
<comment>Description:</comment>
  Probability mass function of the Poisson distribution
  
  Returns the probability mass at <strong>$x</strong>, where the random variable follows the Poisson distribution
  whose parameter is <strong>$lb</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$x </strong>  The value at which the probability mass is calculated
  <info>float</info>  <strong>$lb</strong>  The parameter of the Poisson distribution

<comment>Return:</comment>
  <info>float</info>  The probability mass at <strong>$x</strong> or <info>false</info> for failure.


id: stats_dens_t
type: function
doc:
<comment>Description:</comment>
  Probability density function of the t-distribution
  
  Returns the probability density at <strong>$x</strong>, where the random variable follows the t-distribution of
  which the degree of freedom is <strong>$dfr</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$x  </strong>  The value at which the probability density is calculated
  <info>float</info>  <strong>$dfr</strong>  The degree of freedom of the distribution

<comment>Return:</comment>
  <info>float</info>  The probability density at <strong>$x</strong> or <info>false</info> for failure.


id: stats_dens_uniform
type: function
doc:
<comment>Description:</comment>
  Probability density function of the uniform distribution
  
  Returns the probability density at <strong>$x</strong>, where the random variable follows the uniform distribution
  of which the lower bound is <strong>$a</strong> and the upper bound is <strong>$b</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$x</strong>  The value at which the probability density is calculated
  <info>float</info>  <strong>$a</strong>  The lower bound of the distribution
  <info>float</info>  <strong>$b</strong>  The upper bound of the distribution

<comment>Return:</comment>
  <info>float</info>  The probability density at <strong>$x</strong> or <info>false</info> for failure.


id: stats_dens_weibull
type: function
doc:
<comment>Description:</comment>
  Probability density function of the Weibull distribution
  
  Returns the probability density at <strong>$x</strong>, where the random variable follows the Weibull distribution
  of which the shape parameter is <strong>$a</strong> and the scale parameter is <strong>$b</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$x</strong>  The value at which the probability density is calculated
  <info>float</info>  <strong>$a</strong>  The shape parameter of the distribution
  <info>float</info>  <strong>$b</strong>  The scale parameter of the distribution

<comment>Return:</comment>
  <info>float</info>  The probability density at <strong>$x</strong> or <info>false</info> for failure.


id: stats_harmonic_mean
type: function
doc:
<comment>Description:</comment>
  Returns the harmonic mean of an array of values
  
  Returns the harmonic mean of the values in <strong>$a</strong>.

<comment>Param:</comment>
  <info>array</info>  <strong>$a</strong>  The input array

<comment>Return:</comment>
  <info>number</info>  Returns the harmonic mean of the values in <strong>$a</strong>, or <info>false</info> if <strong>$a</strong> is empty or is not an array.


id: stats_kurtosis
type: function
doc:
<comment>Description:</comment>
  Computes the kurtosis of the data in the array
  
  Returns the kurtosis of the values in <strong>$a</strong>.

<comment>Param:</comment>
  <info>array</info>  <strong>$a</strong>  The input array

<comment>Return:</comment>
  <info>float</info>  Returns the kurtosis of the values in <strong>$a</strong>, or <info>false</info> if <strong>$a</strong> is empty or is not an array.


id: stats_rand_gen_beta
type: function
doc:
<comment>Description:</comment>
  Generates a random deviate from the beta distribution
  
  Returns a random deviate from the beta distribution with parameters A and B. The density of the
  beta is x^(a-1) * (1-x)^(b-1) / B(a,b) for 0 \< x \<. Method R. C. H. Cheng.

<comment>Param:</comment>
  <info>float</info>  <strong>$a</strong>  The shape parameter of the beta distribution
  <info>float</info>  <strong>$b</strong>  The shape parameter of the beta distribution

<comment>Return:</comment>
  <info>float</info>  A random deviate


id: stats_rand_gen_chisquare
type: function
doc:
<comment>Description:</comment>
  Generates a random deviate from the chi-square distribution
  
  Returns a random deviate from the chi-square distribution where the degrees of freedom is  <strong>$df</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$df</strong>  The degrees of freedom

<comment>Return:</comment>
  <info>float</info>  A random deviate


id: stats_rand_gen_exponential
type: function
doc:
<comment>Description:</comment>
  Generates a random deviate from the exponential distribution
  
  Returns a random deviate from the exponential distribution of which the scale is <strong>$av</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$av</strong>  The scale parameter

<comment>Return:</comment>
  <info>float</info>  A random deviate


id: stats_rand_gen_f
type: function
doc:
<comment>Description:</comment>
  Generates a random deviate from the F distribution
  
  Generates a random deviate from the F (variance ratio) distribution with  "dfn" degrees of freedom
  in the numerator and "dfd" degrees of freedom in  the denominator. Method : directly generates
  ratio of chisquare variates.

<comment>Param:</comment>
  <info>float</info>  <strong>$dfn</strong>  The degrees of freedom in the numerator
  <info>float</info>  <strong>$dfd</strong>  The degrees of freedom in the denominator

<comment>Return:</comment>
  <info>float</info>  A random deviate


id: stats_rand_gen_funiform
type: function
doc:
<comment>Description:</comment>
  Generates uniform float between low (exclusive) and high (exclusive)
  
  Returns a random deviate from the uniform distribution from <strong>$low</strong> to <strong>$high</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$low </strong>  The lower bound (inclusive)
  <info>float</info>  <strong>$high</strong>  The upper bound (exclusive)

<comment>Return:</comment>
  <info>float</info>  A random deviate


id: stats_rand_gen_gamma
type: function
doc:
<comment>Description:</comment>
  Generates a random deviate from the gamma distribution
  
  Generates a random deviate from the gamma distribution whose density is (A**R)/Gamma(R) * X**(R-1)
  * Exp(-A*X).

<comment>Param:</comment>
  <info>float</info>  <strong>$a</strong>  location parameter of Gamma distribution (<strong>$a</strong> &gt; 0).
  <info>float</info>  <strong>$r</strong>  shape parameter of Gamma distribution (<strong>$r</strong> &gt; 0).

<comment>Return:</comment>
  <info>float</info>  A random deviate


id: stats_rand_gen_ibinomial
type: function
doc:
<comment>Description:</comment>
  Generates a random deviate from the binomial distribution
  
  Returns a random deviate from the binomial distribution whose number of trials is <strong>$n</strong> and whose
  probability of an event in each trial is <strong>$pp</strong>.

<comment>Param:</comment>
  <info>int  </info>  <strong>$n </strong>  The number of trials
  <info>float</info>  <strong>$pp</strong>  The probability of an event in each trial

<comment>Return:</comment>
  <info>int</info>  A random deviate


id: stats_rand_gen_ibinomial_negative
type: function
doc:
<comment>Description:</comment>
  Generates a random deviate from the negative binomial distribution
  
  Returns a random deviate from a negative binomial distribution where the number of success is <strong>$n</strong>
  and the success rate is <strong>$p</strong>.

<comment>Param:</comment>
  <info>int  </info>  <strong>$n</strong>  The number of success
  <info>float</info>  <strong>$p</strong>  The success rate

<comment>Return:</comment>
  <info>int</info>  A random deviate, which is the number of failure.


id: stats_rand_gen_int
type: function
doc:
<comment>Description:</comment>
  Generates random integer between 1 and 2147483562
  
  Returns a random integer between 1 and 2147483562

<comment>Return:</comment>
  <info>int</info>  A random integer


id: stats_rand_gen_ipoisson
type: function
doc:
<comment>Description:</comment>
  Generates a single random deviate from a Poisson distribution
  
  Returns a random deviate from the Poisson distribution with parameter <strong>$mu</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$mu</strong>  The parameter of the Poisson distribution

<comment>Return:</comment>
  <info>int</info>  A random deviate


id: stats_rand_gen_iuniform
type: function
doc:
<comment>Description:</comment>
  Generates integer uniformly distributed between LOW (inclusive) and HIGH (inclusive)
  
  Returns a random integer from the discrete uniform distribution between <strong>$low</strong> (inclusive) and <strong>$high</strong>
  (inclusive).

<comment>Param:</comment>
  <info>int</info>  <strong>$low </strong>  The lower bound
  <info>int</info>  <strong>$high</strong>  The upper bound

<comment>Return:</comment>
  <info>int</info>  A random integer


id: stats_rand_gen_noncentral_chisquare
type: function
doc:
<comment>Description:</comment>
  Generates a random deviate from the non-central chi-square distribution
  
  Returns a random deviate from the non-central chi-square distribution with degrees of freedom,
  <strong>$df</strong>, and non-centrality parameter, <strong>$xnonc</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$df   </strong>  The degrees of freedom
  <info>float</info>  <strong>$xnonc</strong>  The non-centrality parameter

<comment>Return:</comment>
  <info>float</info>  A random deviate


id: stats_rand_gen_noncentral_f
type: function
doc:
<comment>Description:</comment>
  Generates a random deviate from the noncentral F distribution
  
  Returns a random deviate from the non-central F distribution where the degrees of freedoms are
  <strong>$dfn</strong> (numerator) and <strong>$dfd</strong> (denominator), and the non-centrality parameter is <strong>$xnonc</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$dfn  </strong>  The degrees of freedom of the numerator
  <info>float</info>  <strong>$dfd  </strong>  The degrees of freedom of the denominator
  <info>float</info>  <strong>$xnonc</strong>  The non-centrality parameter

<comment>Return:</comment>
  <info>float</info>  A random deviate


id: stats_rand_gen_noncentral_t
type: function
doc:
<comment>Description:</comment>
  Generates a single random deviate from a non-central t-distribution
  
  Returns a random deviate from the non-central t-distribution with the degrees of freedom, <strong>$df</strong>, and
  the non-centrality parameter, <strong>$xnonc</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$df   </strong>  The degrees of freedom
  <info>float</info>  <strong>$xnonc</strong>  The non-centrality parameter

<comment>Return:</comment>
  <info>float</info>  A random deviate


id: stats_rand_gen_normal
type: function
doc:
<comment>Description:</comment>
  Generates a single random deviate from a normal distribution
  
  Returns a random deviate from the normal distribution with mean, <strong>$av</strong>, and standard deviation, <strong>$sd</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$av</strong>  The mean of the normal distribution
  <info>float</info>  <strong>$sd</strong>  The standard deviation of the normal distribution

<comment>Return:</comment>
  <info>float</info>  A random deviate


id: stats_rand_gen_t
type: function
doc:
<comment>Description:</comment>
  Generates a single random deviate from a t-distribution
  
  Returns a random deviate from the t-distribution with the degrees of freedom, <strong>$df</strong>.

<comment>Param:</comment>
  <info>float</info>  <strong>$df</strong>  The degrees of freedom

<comment>Return:</comment>
  <info>float</info>  A random deviate


id: stats_rand_get_seeds
type: function
doc:
<comment>Description:</comment>
  Get the seed values of the random number generator
  
  Returns the current seed values of the random number generator

<comment>Return:</comment>
  <info>array</info>  Returns an array of two integers.


id: stats_rand_phrase_to_seeds
type: function
doc:
<comment>Description:</comment>
  Generate two seeds for the RGN random number generator
  
  Generate two seeds for the random number generator from a <strong>$phrase</strong>.

<comment>Param:</comment>
  <info>string</info>  <strong>$phrase</strong>  The input phrase

<comment>Return:</comment>
  <info>array</info>  Returns an array of two integers.


id: stats_rand_ranf
type: function
doc:
<comment>Description:</comment>
  Generates a random floating point number between 0 and 1
  
  Returns a random floating point number from a uniform distribution between 0 (exclusive) and  1
  (exclusive).

<comment>Return:</comment>
  <info>float</info>  A random floating point number


id: stats_rand_setall
type: function
doc:
<comment>Description:</comment>
  Set seed values to the random generator
  
  Set <strong>$iseed1</strong> and <strong>$iseed2</strong> as seed values to the random generator used in statistic functions.

<comment>Param:</comment>
  <info>int</info>  <strong>$iseed1</strong>  The value which is used as the random seed
  <info>int</info>  <strong>$iseed2</strong>  The value which is used as the random seed

<comment>Return:</comment>
  <info>void</info>  No values are returned.


id: stats_skew
type: function
doc:
<comment>Description:</comment>
  Computes the skewness of the data in the array
  
  Returns the skewness of the values in <strong>$a</strong>.

<comment>Param:</comment>
  <info>array</info>  <strong>$a</strong>  The input array

<comment>Return:</comment>
  <info>float</info>  Returns the skewness of the values in <strong>$a</strong>, or <info>false</info> if <strong>$a</strong> is empty or is not an array.


id: stats_standard_deviation
type: function
doc:
<comment>Description:</comment>
  Returns the standard deviation
  
  Returns the standard deviation of the values in <strong>$a</strong>.

<comment>Param:</comment>
  <info>array</info>  <strong>$a     </strong>  The array of data to find the standard deviation for. Note that all  values of the
                  array will be cast to <info>float</info>.
  <info>bool </info>  <strong>$sample</strong>  Indicates if <strong>$a</strong> represents a sample of the  population; defaults to <info>false</info>.

<comment>Return:</comment>
  <info>float</info>  Returns the standard deviation on success; <info>false</info> on failure.


id: stats_stat_binomial_coef
type: function
doc:
<comment>Description:</comment>
  Returns a binomial coefficient
  
  Returns the binomial coefficient of <strong>$n</strong> choose <strong>$x</strong>.

<comment>Param:</comment>
  <info>int</info>  <strong>$x</strong>  The number of chooses from the set
  <info>int</info>  <strong>$n</strong>  The number of elements in the set

<comment>Return:</comment>
  <info>float</info>  Returns the binomial coefficient


id: stats_stat_correlation
type: function
doc:
<comment>Description:</comment>
  Returns the Pearson correlation coefficient of two data sets
  
  Returns the Pearson correlation coefficient between <strong>$arr1</strong> and <strong>$arr2</strong>.

<comment>Param:</comment>
  <info>array</info>  <strong>$arr1</strong>  The first array
  <info>array</info>  <strong>$arr2</strong>  The second array

<comment>Return:</comment>
  <info>float</info>  Returns the Pearson correlation coefficient between <strong>$arr1</strong> and <strong>$arr2</strong>, or <info>false</info> on failure.


id: stats_stat_factorial
type: function
doc:
<comment>Description:</comment>
  Returns the factorial of an integer
  
  Returns the factorial of an integer, <strong>$n</strong>.

<comment>Param:</comment>
  <info>int</info>  <strong>$n</strong>  An integer

<comment>Return:</comment>
  <info>float</info>  The factorial of <strong>$n</strong>.


id: stats_stat_independent_t
type: function
doc:
<comment>Description:</comment>
  Returns the t-value from the independent two-sample t-test
  
  Returns the t-value of the independent two-sample t-test between <strong>$arr1</strong> and <strong>$arr2</strong>.
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Param:</comment>
  <info>array</info>  <strong>$arr1</strong>  The first set of values
  <info>array</info>  <strong>$arr2</strong>  The second set of values

<comment>Return:</comment>
  <info>float</info>  Returns the t-value, or <info>false</info> if failure.


id: stats_stat_innerproduct
type: function
doc:
<comment>Description:</comment>
  Returns the inner product of two vectors
  
  Returns the inner product of <strong>$arr1</strong> and <strong>$arr2</strong>.

<comment>Param:</comment>
  <info>array</info>  <strong>$arr1</strong>  The first array
  <info>array</info>  <strong>$arr2</strong>  The second array

<comment>Return:</comment>
  <info>float</info>  Returns the inner product of <strong>$arr1</strong> and <strong>$arr2</strong>, or <info>false</info> on failure.


id: stats_stat_paired_t
type: function
doc:
<comment>Description:</comment>
  Returns the t-value of the dependent t-test for paired samples
  
  Returns the t-value of the dependent t-test for paired samples <strong>$arr1</strong> and <strong>$arr2</strong>.

<comment>Param:</comment>
  <info>array</info>  <strong>$arr1</strong>  The first samples
  <info>array</info>  <strong>$arr2</strong>  The second samples

<comment>Return:</comment>
  <info>float</info>  Returns the t-value, or <info>false</info> if failure.


id: stats_stat_percentile
type: function
doc:
<comment>Description:</comment>
  Returns the percentile value
  
  Returns the <strong>$perc</strong>-th percentile value of the array <strong>$arr</strong>.

<comment>Param:</comment>
  <info>array</info>  <strong>$arr </strong>  The input array
  <info>float</info>  <strong>$perc</strong>  The percentile

<comment>Return:</comment>
  <info>float</info>  Returns the percentile values of the input array.


id: stats_stat_powersum
type: function
doc:
<comment>Description:</comment>
  Returns the power sum of a vector
  
  Returns the sum of the <strong>$power</strong>-th power of a vector represented as an array <strong>$arr</strong>.

<comment>Param:</comment>
  <info>array</info>  <strong>$arr  </strong>  The input array
  <info>float</info>  <strong>$power</strong>  The power

<comment>Return:</comment>
  <info>float</info>  Returns the power sum of the input array.


id: stats_variance
type: function
doc:
<comment>Description:</comment>
  Returns the variance
  
  Returns the variance of the values in <strong>$a</strong>.

<comment>Param:</comment>
  <info>array</info>  <strong>$a     </strong>  The array of data to find the standard deviation for. Note that all  values of the
                  array will be cast to <info>float</info>.
  <info>bool </info>  <strong>$sample</strong>  Indicates if <strong>$a</strong> represents a sample of the  population; defaults to <info>false</info>.

<comment>Return:</comment>
  <info>float</info>  Returns the variance on success; <info>false</info> on failure.


id: stomp_connect_error
type: function
doc:
<comment>Description:</comment>
  Returns a string description of the last connect error
  
  Returns a string description of the last connect error.

<comment>Return:</comment>
  <info>string</info>  A string that describes the error, or <info>null</info> if no error occurred.


id: stomp_version
type: function
doc:
<comment>Description:</comment>
  Gets the current stomp extension version
  
  Returns a string containing the version of the current stomp extension.

<comment>Return:</comment>
  <info>string</info>  It returns the current stomp extension version


id: str_contains
type: function
doc:
<comment>Description:</comment>
  Determine if a string contains a given substring
  
  Performs a case-sensitive check indicating if <strong>$needle</strong> is contained in <strong>$haystack</strong>.

<comment>Param:</comment>
  <info>string</info>  <strong>$haystack</strong>  The string to search in.
  <info>string</info>  <strong>$needle  </strong>  The substring to search for in the <strong>$haystack</strong>.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if <strong>$needle</strong> is in <strong>$haystack</strong>, <info>false</info> otherwise.

<comment>See Also:</comment>
   * <strong>str_ends_with()</strong>
   * <strong>str_starts_with()</strong>
   * <strong>stripos()</strong>
   * <strong>strrpos()</strong>
   * <strong>strripos()</strong>
   * <strong>strstr()</strong>
   * <strong>strpbrk()</strong>
   * <strong>substr()</strong>
   * <strong>preg_match()</strong>


id: str_ends_with
type: function
doc:
<comment>Description:</comment>
  Checks if a string ends with a given substring
  
  Performs a case-sensitive check indicating if <strong>$haystack</strong> ends with <strong>$needle</strong>.

<comment>Param:</comment>
  <info>string</info>  <strong>$haystack</strong>  The string to search in.
  <info>string</info>  <strong>$needle  </strong>  The substring to search for in the <strong>$haystack</strong>.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if <strong>$haystack</strong> ends with <strong>$needle</strong>, <info>false</info> otherwise.

<comment>See Also:</comment>
   * <strong>str_contains()</strong>
   * <strong>str_starts_with()</strong>
   * <strong>stripos()</strong>
   * <strong>strrpos()</strong>
   * <strong>strripos()</strong>
   * <strong>strstr()</strong>
   * <strong>strpbrk()</strong>
   * <strong>substr()</strong>
   * <strong>preg_match()</strong>


id: str_getcsv
type: function
doc:
<comment>Description:</comment>
  Parse a CSV string into an array
    
  
  Parses a string input for fields in CSV format and returns an array containing the fields read.
  
  The locale settings are taken into account by this function. If <return>LC_CTYPE</return> is e.g. <return>en_US.UTF-8</return>,
  strings in one-byte encodings may be read wrongly by this function.

<comment>Param:</comment>
  <info>string</info>  <strong>$string   </strong>  The string to parse.
  <info>string</info>  <strong>$separator</strong>  Set the field delimiter (one character only).
  <info>string</info>  <strong>$enclosure</strong>  Set the field enclosure character (one character only).
  <info>string</info>  <strong>$escape   </strong>  Set the escape character (at most one character). Defaults as a backslash (<return>\</return>)
                      An empty string (<return>""</return>) disables the proprietary escape mechanism.
                      
                      Usually an <strong>$enclosure</strong> character is escaped inside a field by doubling it;
                      however, the <strong>$escape</strong> character can be used as an alternative. So for the
                      default parameter values <return>""</return> and <return>\"</return> have the same meaning. Other than allowing
                      to escape the <strong>$enclosure</strong> character the <strong>$escape</strong> character has no special
                      meaning; it isn't even meant to escape itself.

<comment>Return:</comment>
  <info>array</info>  Returns an indexed array containing the fields read.

<comment>See Also:</comment>
   * <strong>fgetcsv()</strong>


id: str_ireplace
type: function
doc:
<comment>Description:</comment>
  Case-insensitive version of str_replace
  
  This function returns a string or an array with all occurrences of <strong>$search</strong> in <strong>$subject</strong> (ignoring
  case) replaced with the given <strong>$replace</strong> value.  If you don't need fancy replacing rules, you should
  generally use this function instead of <strong>preg_replace()</strong> with the <return>i</return> modifier.

<comment>Param:</comment>
  <info>arraystring</info>  <strong>$search </strong>  The value being searched for, otherwise known as the needle.  An array may
                         be used to designate multiple needles.
  <info>arraystring</info>  <strong>$replace</strong>  The replacement value that replaces found <strong>$search</strong> values. An array may be
                         used to designate multiple replacements.
  <info>stringarray</info>  <strong>$subject</strong>  The string or array being searched and replaced on, otherwise known as the
                         haystack.
                         
                         If <strong>$subject</strong> is an array, then the search and replace is performed with
                         every entry of  <strong>$subject</strong>, and the return value is an array as well.
  <info>int        </info>  <strong>$count  </strong>  If passed, this will be set to the number of replacements performed.

<comment>Return:</comment>
  <info>stringarray</info>  Returns a string or an array of replacements.

<comment>See Also:</comment>
   * <strong>str_replace()</strong>
   * <strong>preg_replace()</strong>
   * <strong>strtr()</strong>


id: str_pad
type: function
doc:
<comment>Description:</comment>
  Pad a string to a certain length with another string
  
  This function returns the <strong>$string</strong> string padded on the left, the right, or both sides to the
  specified padding length. If the optional argument <strong>$pad_string</strong> is not supplied, the <strong>$string</strong> is
  padded with spaces, otherwise it is padded with characters from <strong>$pad_string</strong> up to the limit.

<comment>Param:</comment>
  <info>string</info>  <strong>$string    </strong>  The input string.
  <info>int   </info>  <strong>$length    </strong>  If the value of <strong>$length</strong> is negative, less than, or equal to the length of the
                       input string, no padding takes place, and <strong>$string</strong> will be returned.
  <info>string</info>  <strong>$pad_string</strong>  The <strong>$pad_string</strong> may be truncated if the required number of padding characters
                       can't be evenly divided by the <strong>$pad_string</strong>'s length.
  <info>int   </info>  <strong>$pad_type  </strong>  Optional argument <strong>$pad_type</strong> can be <info>STR_PAD_RIGHT</info>, <info>STR_PAD_LEFT</info>, or
                       <info>STR_PAD_BOTH</info>. If <strong>$pad_type</strong> is not specified it is assumed to be
                       <info>STR_PAD_RIGHT</info>.

<comment>Return:</comment>
  <info>string</info>  Returns the padded string.


id: str_repeat
type: function
doc:
<comment>Description:</comment>
  Repeat a string
  
  Returns <strong>$string</strong> repeated <strong>$times</strong> times.

<comment>Param:</comment>
  <info>string</info>  <strong>$string</strong>  The string to be repeated.
  <info>int   </info>  <strong>$times </strong>  Number of time the <strong>$string</strong> string should be repeated.
                   
                   <strong>$times</strong> has to be greater than or equal to 0. If the <strong>$times</strong> is set to 0, the
                   function will return an empty string.

<comment>Return:</comment>
  <info>string</info>  Returns the repeated string.

<comment>See Also:</comment>
   * for
   * <strong>str_pad()</strong>
   * <strong>substr_count()</strong>


id: str_replace
type: function
doc:
<comment>Description:</comment>
  Replace all occurrences of the search string with the replacement string
  
  This function returns a string or an array with all occurrences of <strong>$search</strong> in <strong>$subject</strong> replaced
  with the given <strong>$replace</strong> value.
  
  If you don't need fancy replacing rules (like regular expressions), you should use this function
  instead of <strong>preg_replace()</strong>.

<comment>Param:</comment>
  <info>arraystring</info>  <strong>$search </strong>  The value being searched for, otherwise known as the needle. An array may
                         be used to designate multiple needles.
  <info>arraystring</info>  <strong>$replace</strong>  The replacement value that replaces found <strong>$search</strong> values. An array may be
                         used to designate multiple replacements.
  <info>stringarray</info>  <strong>$subject</strong>  The string or array being searched and replaced on, otherwise known as the
                         haystack.
                         
                         If <strong>$subject</strong> is an array, then the search and replace is performed with
                         every entry of <strong>$subject</strong>, and the return value is an array as well.
  <info>int        </info>  <strong>$count  </strong>  If passed, this will be set to the number of replacements performed.

<comment>Return:</comment>
  <info>stringarray</info>  This function returns a string or an array with the replaced values.

<comment>See Also:</comment>
   * <strong>str_ireplace()</strong>
   * <strong>substr_replace()</strong>
   * <strong>preg_replace()</strong>
   * <strong>strtr()</strong>


id: str_rot13
type: function
doc:
<comment>Description:</comment>
  Perform the rot13 transform on a string
  
  Performs the ROT13 encoding on the <strong>$string</strong> argument and returns the resulting string.
  
  The ROT13 encoding simply shifts every letter by 13 places in the alphabet while leaving non-alpha
  characters untouched. Encoding and decoding are done by the same function, passing an encoded
  string as argument will return the original version.

<comment>Param:</comment>
  <info>string</info>  <strong>$string</strong>  The input string.

<comment>Return:</comment>
  <info>string</info>  Returns the ROT13 version of the given string.


id: str_shuffle
type: function
doc:
<comment>Description:</comment>
  Randomly shuffles a string
  
  <strong>str_shuffle()</strong> shuffles a string.  One permutation of all possible is created.
  
  Această funcție nu generează valori securizate din punct de vedere
  criptografic și deci nu trebuie utilizată pentru scopuri criptografice. Dacă
  aveți nevoie de o valoare securizată din punct de vedere criptografic considerați
  utilizarea <strong>random_int()</strong>, <strong>random_bytes()</strong> sau
  <strong>openssl_random_pseudo_bytes()</strong> în schimb.

<comment>Param:</comment>
  <info>string</info>  <strong>$string</strong>  The input string.

<comment>Return:</comment>
  <info>string</info>  Returns the shuffled string.

<comment>See Also:</comment>
   * <strong>shuffle()</strong>
   * <strong>rand()</strong>


id: str_split
type: function
doc:
<comment>Description:</comment>
  Convert a string to an array
  
  Converts a string to an array.

<comment>Param:</comment>
  <info>string</info>  <strong>$string</strong>  The input string.
  <info>int   </info>  <strong>$length</strong>  Maximum length of the chunk.

<comment>Return:</comment>
  <info>array</info>  If the optional <strong>$length</strong> parameter is specified, the returned array will be broken down into
         chunks with each being <strong>$length</strong> in length, otherwise each chunk will be one character in
         length.
         
         <info>false</info> is returned if <strong>$length</strong> is less than 1. If the <strong>$length</strong> length exceeds the length of
         <strong>$string</strong>, the entire string is returned as the first (and only) array element.

<comment>See Also:</comment>
   * <strong>chunk_split()</strong>
   * <strong>preg_split()</strong>
   * <strong>explode()</strong>
   * <strong>count_chars()</strong>
   * <strong>str_word_count()</strong>
   * for


id: str_starts_with
type: function
doc:
<comment>Description:</comment>
  Checks if a string starts with a given substring
  
  Performs a case-sensitive check indicating if <strong>$haystack</strong> begins with <strong>$needle</strong>.

<comment>Param:</comment>
  <info>string</info>  <strong>$haystack</strong>  The string to search in.
  <info>string</info>  <strong>$needle  </strong>  The substring to search for in the <strong>$haystack</strong>.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if <strong>$haystack</strong> begins with <strong>$needle</strong>, <info>false</info> otherwise.

<comment>See Also:</comment>
   * <strong>str_contains()</strong>
   * <strong>str_ends_with()</strong>
   * <strong>stripos()</strong>
   * <strong>strrpos()</strong>
   * <strong>strripos()</strong>
   * <strong>strstr()</strong>
   * <strong>strpbrk()</strong>
   * <strong>substr()</strong>
   * <strong>preg_match()</strong>


id: str_word_count
type: function
doc:
<comment>Description:</comment>
  Return information about words used in a string
    
  
  Counts the number of words inside <strong>$string</strong>.  If the optional <strong>$format</strong> is not specified, then  the
  return value will be an integer representing the number of words  found. In the event the <strong>$format</strong>
  is specified, the return value will be an array, content of which is dependent on the  <strong>$format</strong>.
  The possible value for the  <strong>$format</strong> and the resultant outputs are listed below.
  
  For the purpose of this function, 'word' is defined as a locale dependent string containing
  alphabetic characters, which also may contain, but not start with "'" and "-" characters.

<comment>Param:</comment>
  <info>string    </info>  <strong>$string    </strong>  The string
  <info>int       </info>  <strong>$format    </strong>  Specify the return value of this function. The current supported values
                           are:  0 - returns the number of words found  1 - returns an array
                           containing all the words found inside the <strong>$string</strong>  2 - returns an
                           associative array, where the key is the numeric position of the word
                           inside the <strong>$string</strong> and the value is the actual word itself
                           
                           0 - returns the number of words found
                           
                           1 - returns an array containing all the words found inside the <strong>$string</strong>
                           
                           2 - returns an associative array, where the key is the numeric position
                           of the word inside the <strong>$string</strong> and the value is the actual word itself
  <info>stringnull</info>  <strong>$characters</strong>  A list of additional characters which will be considered as 'word'

<comment>Return:</comment>
  <info>arrayint</info>  Returns an array or an integer, depending on the <strong>$format</strong> chosen.

<comment>See Also:</comment>
   * <strong>explode()</strong>
   * <strong>preg_split()</strong>
   * <strong>split()</strong>
   * <strong>count_chars()</strong>
   * <strong>substr_count()</strong>


id: strcasecmp
type: function
doc:
<comment>Description:</comment>
  Binary safe case-insensitive string comparison
  
  Binary safe case-insensitive string comparison.

<comment>Param:</comment>
  <info>string</info>  <strong>$str1</strong>  The first string
  <info>string</info>  <strong>$str2</strong>  The second string

<comment>Return:</comment>
  <info>int</info>  Returns \< 0 if <strong>$str1</strong> is less than <strong>$str2</strong>; &gt; 0 if <strong>$str1</strong> is greater than <strong>$str2</strong>, and 0 if
       they are equal.

<comment>See Also:</comment>
   * <strong>strcmp()</strong>
   * <strong>preg_match()</strong>
   * <strong>substr_compare()</strong>
   * <strong>strncasecmp()</strong>
   * <strong>stristr()</strong>
   * <strong>substr()</strong>


id: strchr
type: function
doc:
<comment>Description:</comment>
  Pseudonim pentru strstr
  
  Această funcție este pseudonim pentru:  <strong>strstr()</strong>.


id: strcmp
type: function
doc:
<comment>Description:</comment>
  Binary safe string comparison
  
  Note that this comparison is case sensitive.

<comment>Param:</comment>
  <info>string</info>  <strong>$str1</strong>  The first string.
  <info>string</info>  <strong>$str2</strong>  The second string.

<comment>Return:</comment>
  <info>int</info>  Returns \< 0 if <strong>$str1</strong> is less than <strong>$str2</strong>; &gt; 0 if <strong>$str1</strong> is greater than <strong>$str2</strong>, and 0 if
       they are equal.

<comment>See Also:</comment>
   * <strong>strcasecmp()</strong>
   * <strong>preg_match()</strong>
   * <strong>substr_compare()</strong>
   * <strong>strncmp()</strong>
   * <strong>strstr()</strong>
   * <strong>substr()</strong>


id: strcoll
type: function
doc:
<comment>Description:</comment>
  Locale based string comparison
  
  Note that this comparison is case sensitive, and unlike <strong>strcmp()</strong> this function is not binary safe.
  
  <strong>strcoll()</strong> uses the current locale for doing the comparisons.  If the current locale is C or POSIX,
  this function is equivalent to <strong>strcmp()</strong>.

<comment>Param:</comment>
  <info>string</info>  <strong>$string1</strong>  The first string.
  <info>string</info>  <strong>$string2</strong>  The second string.

<comment>Return:</comment>
  <info>int</info>  Returns \< 0 if <strong>$string1</strong> is less than <strong>$string2</strong>; &gt; 0 if <strong>$string1</strong> is greater than <strong>$string2</strong>,
       and 0 if they are equal.

<comment>See Also:</comment>
   * <strong>preg_match()</strong>
   * <strong>strcmp()</strong>
   * <strong>strcasecmp()</strong>
   * <strong>substr()</strong>
   * <strong>stristr()</strong>
   * <strong>strncasecmp()</strong>
   * <strong>strncmp()</strong>
   * <strong>strstr()</strong>
   * <strong>setlocale()</strong>


id: strcspn
type: function
doc:
<comment>Description:</comment>
  Find length of initial segment not matching mask
  
  Returns the length of the initial segment of <strong>$string</strong> which does not contain any of the characters
  in <strong>$characters</strong>.
  
  If <strong>$offset</strong> and <strong>$length</strong> are omitted, then all of <strong>$string</strong> will be examined. If they are included,
  then the effect will be the same as calling <return>strcspn(substr($subject, $start, $length), $mask)</return> (see
  for more information).

<comment>Param:</comment>
  <info>string </info>  <strong>$string    </strong>  The string to examine.
  <info>string </info>  <strong>$characters</strong>  The string containing every disallowed character.
  <info>int    </info>  <strong>$offset    </strong>  The position in <strong>$string</strong> to start searching.
                        
                        If <strong>$offset</strong> is given and is non-negative, then <strong>strcspn()</strong> will begin examining
                        <strong>$string</strong> at the <strong>$offset</strong>'th position. For instance, in the string '<return>abcdef</return>',
                        the character at position <return>0</return> is '<return>a</return>', the character at position <return>2</return> is '<return>c</return>', and
                        so forth.
                        
                        If <strong>$offset</strong> is given and is negative, then <strong>strcspn()</strong> will begin examining
                        <strong>$string</strong> at the <strong>$offset</strong>'th position from the end of <strong>$string</strong>.
  <info>intnull</info>  <strong>$length    </strong>  The length of the segment from <strong>$string</strong> to examine.
                        
                        If <strong>$length</strong> is given and is non-negative, then <strong>$string</strong> will be examined for
                        <strong>$length</strong> characters after the starting position.
                        
                        If <strong>$length</strong> is given and is negative, then <strong>$string</strong> will be examined from the
                        starting position up to <strong>$length</strong> characters from the end of <strong>$string</strong>.

<comment>Return:</comment>
  <info>int</info>  Returns the length of the initial segment of <strong>$string</strong> which consists entirely of characters
       not in <strong>$characters</strong>.
       
       When a <strong>$offset</strong> parameter is set, the returned length is counted starting from this position,
       not from the beginning of <strong>$string</strong>.

<comment>See Also:</comment>
   * <strong>strspn()</strong>


id: streamWrapper
type: class
doc:
<comment>Description:</comment>
  Allows you to implement your own protocol handlers and streams for use with all the other
  filesystem functions (such as <strong>fopen()</strong>, <strong>fread()</strong> etc.).
  
  This is NOT a real class, only a prototype of how a class defining its own protocol should be.
  
  Implementing the methods in other ways than described here can lead to undefined behaviour.
  
  An instance of this class is initialized as soon as a stream function tries to access the protocol
  it is associated with.


id: streamWrapper::__construct
type: function
doc:
<comment>Description:</comment>
  Constructs a new stream wrapper
  
  Called when opening the stream wrapper, right before streamWrapper::stream_open.


id: streamWrapper::__destruct
type: function
doc:
<comment>Description:</comment>
  Destructs an existing stream wrapper
  
  Called when closing the stream wrapper, right before streamWrapper::stream_flush.


id: streamWrapper::dir_closedir
type: function
doc:
<comment>Description:</comment>
  Close directory handle
  
  This method is called in response to <strong>closedir()</strong>.
  
  Any resources which were locked, or allocated, during opening and use of the directory stream
  should be released.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>closedir()</strong>
   * streamWrapper::dir_opendir


id: streamWrapper::dir_opendir
type: function
doc:
<comment>Description:</comment>
  Open directory handle
  
  This method is called in response to <strong>opendir()</strong>.

<comment>Param:</comment>
  <info>string</info>  <strong>$path   </strong>  Specifies the URL that was passed to <strong>opendir()</strong>.
                    
                    The URL can be broken apart with <strong>parse_url()</strong>.
  <info>int   </info>  <strong>$options</strong>  

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>opendir()</strong>
   * streamWrapper::dir_closedir
   * <strong>parse_url()</strong>


id: streamWrapper::dir_readdir
type: function
doc:
<comment>Description:</comment>
  Read entry from directory handle
  
  This method is called in response to <strong>readdir()</strong>.

<comment>Return:</comment>
  <info>string</info>  Should return <info>string</info> representing the next filename, or <info>false</info> if there is no next file.
          
          The return value will be casted to <info>string</info>.

<comment>See Also:</comment>
   * <strong>readdir()</strong>


id: streamWrapper::dir_rewinddir
type: function
doc:
<comment>Description:</comment>
  Rewind directory handle
  
  This method is called in response to <strong>rewinddir()</strong>.
  
  Should reset the output generated by streamWrapper::dir_readdir. i.e.: The next call to
  streamWrapper::dir_readdir should return the first entry in the location returned by
  streamWrapper::dir_opendir.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>rewinddir()</strong>
   * streamWrapper::dir_readdir


id: streamWrapper::mkdir
type: function
doc:
<comment>Description:</comment>
  Create a directory
  
  This method is called in response to <strong>mkdir()</strong>.
  
  In order for the appropriate error message to be returned this method should not be defined if the
  wrapper does not support creating directories.

<comment>Param:</comment>
  <info>string</info>  <strong>$path   </strong>  Directory which should be created.
  <info>int   </info>  <strong>$mode   </strong>  The value passed to <strong>mkdir()</strong>.
  <info>int   </info>  <strong>$options</strong>  A bitwise mask of values, such as <info>STREAM_MKDIR_RECURSIVE</info>.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>mkdir()</strong>
   * streamwrapper::rmdir


id: streamWrapper::rename
type: function
doc:
<comment>Description:</comment>
  Renames a file or directory
  
  This method is called in response to <strong>rename()</strong>.
  
  Should attempt to rename <strong>$path_from</strong> to <strong>$path_to</strong>
  
  In order for the appropriate error message to be returned this method should not be defined if the
  wrapper does not support renaming files.

<comment>Param:</comment>
  <info>string</info>  <strong>$path_from</strong>  The URL to the current file.
  <info>string</info>  <strong>$path_to  </strong>  The URL which the <strong>$path_from</strong> should be renamed to.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>rename()</strong>


id: streamWrapper::rmdir
type: function
doc:
<comment>Description:</comment>
  Removes a directory
  
  This method is called in response to <strong>rmdir()</strong>.
  
  In order for the appropriate error message to be returned this method should not be defined if the
  wrapper does not support removing directories.

<comment>Param:</comment>
  <info>string</info>  <strong>$path   </strong>  The directory URL which should be removed.
  <info>int   </info>  <strong>$options</strong>  A bitwise mask of values, such as <info>STREAM_MKDIR_RECURSIVE</info>.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>rmdir()</strong>
   * streamwrapper::mkdir
   * streamwrapper::unlink


id: streamWrapper::stream_cast
type: function
doc:
<comment>Description:</comment>
  Retrieve the underlaying resource
  
  This method is called in response to <strong>stream_select()</strong>.

<comment>Param:</comment>
  <info>int</info>  <strong>$cast_as</strong>  Can be <info>STREAM_CAST_FOR_SELECT</info> when <strong>stream_select()</strong> is calling <strong>stream_cast()</strong> or
                 <info>STREAM_CAST_AS_STREAM</info> when <strong>stream_cast()</strong> is called for other uses.

<comment>Return:</comment>
  <info>resource</info>  Should return the underlying stream resource used by the wrapper, or <info>false</info>.

<comment>See Also:</comment>
   * <strong>stream_select()</strong>


id: streamWrapper::stream_close
type: function
doc:
<comment>Description:</comment>
  Close a resource
  
  This method is called in response to <strong>fclose()</strong>.
  
  All resources that were locked, or allocated, by the wrapper should be released.

<comment>Return:</comment>
  <info>void</info>  Nu este întoarsă nici o valoare.

<comment>See Also:</comment>
   * <strong>fclose()</strong>
   * streamWrapper::dir_closedir


id: streamWrapper::stream_eof
type: function
doc:
<comment>Description:</comment>
  Tests for end-of-file on a file pointer
  
  This method is called in response to <strong>feof()</strong>.

<comment>Return:</comment>
  <info>bool</info>  Should return <info>true</info> if the read/write position is at the end of the stream and if no more
        data is available to be read, or <info>false</info> otherwise.

<comment>See Also:</comment>
   * <strong>feof()</strong>


id: streamWrapper::stream_flush
type: function
doc:
<comment>Description:</comment>
  Flushes the output
  
  This method is called in response to <strong>fflush()</strong> and when the stream is being closed while any
  unflushed data has been written to it before.
  
  If you have cached data in your stream but not yet stored it into the underlying storage, you
  should do so now.

<comment>Return:</comment>
  <info>bool</info>  Should return <info>true</info> if the cached data was successfully stored (or if there was no data to
        store), or <info>false</info> if the data could not be stored.

<comment>See Also:</comment>
   * <strong>fflush()</strong>


id: streamWrapper::stream_lock
type: function
doc:
<comment>Description:</comment>
  Advisory file locking
  
  This method is called in response to <strong>flock()</strong>, when <strong>file_put_contents()</strong> (when <strong>$flags</strong> contains
  <info>LOCK_EX</info>), <strong>stream_set_blocking()</strong> and when closing the stream (<info>LOCK_UN</info>).

<comment>Param:</comment>
  <info>int</info>  <strong>$operation</strong>  <strong>$operation</strong> is one of the following: <info>LOCK_SH</info> to acquire a shared lock (reader).
                   <info>LOCK_EX</info> to acquire an exclusive lock (writer). <info>LOCK_UN</info> to release a lock (shared
                   or exclusive). <info>LOCK_NB</info> if you don't want <strong>flock()</strong> to block while locking. (not
                   supported on Windows)
                   
                   <info>LOCK_SH</info> to acquire a shared lock (reader).
                   
                   <info>LOCK_EX</info> to acquire an exclusive lock (writer).
                   
                   <info>LOCK_UN</info> to release a lock (shared or exclusive).
                   
                   <info>LOCK_NB</info> if you don't want <strong>flock()</strong> to block while locking. (not supported on
                   Windows)

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>stream_set_blocking()</strong>
   * <strong>flock()</strong>


id: streamWrapper::stream_metadata
type: function
doc:
<comment>Description:</comment>
  Change stream metadata
  
  This method is called to set metadata on the stream. It is called when one of the following
  functions is called on a stream URL: <strong>touch()</strong><strong>chmod()</strong><strong>chown()</strong><strong>chgrp()</strong> Please note that some of these
  operations may not be available on your system.

<comment>Param:</comment>
  <info>string</info>  <strong>$path  </strong>  The file path or URL to set metadata.  Note that in the case of a URL, it must be
                   a :// delimited URL.  Other URL forms are not supported.
  <info>int   </info>  <strong>$option</strong>  One of: <info>STREAM_META_TOUCH</info> (The method was called in response to
                   <strong>touch()</strong>)<info>STREAM_META_OWNER_NAME</info> (The method was called in response to <strong>chown()</strong> with
                   string parameter)<info>STREAM_META_OWNER</info> (The method was called in response to
                   <strong>chown()</strong>)<info>STREAM_META_GROUP_NAME</info> (The method was called in response to
                   <strong>chgrp()</strong>)<info>STREAM_META_GROUP</info> (The method was called in response to
                   <strong>chgrp()</strong>)<info>STREAM_META_ACCESS</info> (The method was called in response to  <strong>chmod()</strong>)
  <info>mixed </info>  <strong>$value </strong>  If <strong>$option</strong> is <info>STREAM_META_TOUCH</info>: <info>Array</info> consisting of two arguments of the <strong>touch()</strong>
                   function.<info>STREAM_META_OWNER_NAME</info> or <info>STREAM_META_GROUP_NAME</info>: The name of the owner
                   user/group as <info>string</info>.<info>STREAM_META_OWNER</info> or <info>STREAM_META_GROUP</info>: The value owner
                   user/group argument as <info>int</info>.<info>STREAM_META_ACCESS</info>: The argument of the <strong>chmod()</strong> as
                   <info>int</info>.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului. If <strong>$option</strong> is not implemented, <info>false</info> should be
        returned.

<comment>See Also:</comment>
   * <strong>touch()</strong>
   * <strong>chmod()</strong>
   * <strong>chown()</strong>
   * <strong>chgrp()</strong>


id: streamWrapper::stream_open
type: function
doc:
<comment>Description:</comment>
  Opens file or URL
  
  This method is called immediately after the wrapper is initialized (f.e. by <strong>fopen()</strong> and
  <strong>file_get_contents()</strong>).

<comment>Param:</comment>
  <info>string</info>  <strong>$path       </strong>  Specifies the URL that was passed to the original function.
                        
                        The URL can be broken apart with <strong>parse_url()</strong>.  Note that only URLs delimited
                        by :// are supported. : and :/ while technically valid URLs, are not.
  <info>string</info>  <strong>$mode       </strong>  The mode used to open the file, as detailed for <strong>fopen()</strong>.
                        
                        Remember to check if the <strong>$mode</strong> is valid for the <strong>$path</strong> requested.
  <info>int   </info>  <strong>$options    </strong>  Holds additional flags set by the streams API. It can hold one or more of
                        the following values OR'd together. FlagDescription<info>STREAM_USE_PATH</info>If <strong>$path</strong>
                        is relative, search for the resource using the include_path.
                        <info>STREAM_REPORT_ERRORS</info>If this flag is set, you are responsible for raising
                        errors using <strong>trigger_error()</strong> during opening of the stream.  If this flag is
                        not set, you should not raise any errors.
  <info>string</info>  <strong>$opened_path</strong>  If the <strong>$path</strong> is opened successfully, and <info>STREAM_USE_PATH</info> is set in <strong>$options</strong>,
                        <strong>$opened_path</strong> should be set to the full path of the file/resource that was
                        actually opened.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>fopen()</strong>
   * <strong>parse_url()</strong>


id: streamWrapper::stream_read
type: function
doc:
<comment>Description:</comment>
  Read from stream
  
  This method is called in response to <strong>fread()</strong> and <strong>fgets()</strong>.
  
  Remember to update the read/write position of the stream (by the number of bytes that were
  successfully read).

<comment>Param:</comment>
  <info>int</info>  <strong>$count</strong>  How many bytes of data from the current position should be returned.

<comment>Return:</comment>
  <info>string</info>  If there are less than <strong>$count</strong> bytes available, return as many as are available.  If no
          more data is available, return either <info>false</info> or an empty string.

<comment>See Also:</comment>
   * <strong>fread()</strong>
   * <strong>fgets()</strong>


id: streamWrapper::stream_seek
type: function
doc:
<comment>Description:</comment>
  Seeks to specific location in a stream
  
  This method is called in response to <strong>fseek()</strong>.
  
  The read/write position of the stream should be updated according to the <strong>$offset</strong> and <strong>$whence</strong>.

<comment>Param:</comment>
  <info>int</info>  <strong>$offset</strong>  The stream offset to seek to.
  <info>int</info>  <strong>$whence</strong>  Possible values: <info>SEEK_SET</info> - Set position equal to <strong>$offset</strong> bytes.<info>SEEK_CUR</info> - Set
                position to current location plus <strong>$offset</strong>.<info>SEEK_END</info> - Set position to end-of-file
                plus <strong>$offset</strong>.
                
                The current implementation never sets <strong>$whence</strong> to <info>SEEK_CUR</info>; instead such seeks are
                internally converted to <info>SEEK_SET</info> seeks.

<comment>Return:</comment>
  <info>bool</info>  Return <info>true</info> if the position was updated, <info>false</info> otherwise.

<comment>See Also:</comment>
   * <strong>fseek()</strong>


id: streamWrapper::stream_set_option
type: function
doc:
<comment>Description:</comment>
  Change stream options
  
  This method is called to set options on the stream.

<comment>Param:</comment>
  <info>int</info>  <strong>$option</strong>  One of: <info>STREAM_OPTION_BLOCKING</info> (The method was called in response to
                <strong>stream_set_blocking()</strong>)<info>STREAM_OPTION_READ_TIMEOUT</info> (The method was called in response
                to <strong>stream_set_timeout()</strong>)<info>STREAM_OPTION_WRITE_BUFFER</info> (The method was called in
                response to  <strong>stream_set_write_buffer()</strong>)
  <info>int</info>  <strong>$arg1  </strong>  If <strong>$option</strong> is <info>STREAM_OPTION_BLOCKING</info>: requested blocking mode (1 meaning block 0 not
                blocking).<info>STREAM_OPTION_READ_TIMEOUT</info>: the timeout in
                seconds.<info>STREAM_OPTION_WRITE_BUFFER</info>: buffer mode (<info>STREAM_BUFFER_NONE</info> or
                <info>STREAM_BUFFER_FULL</info>).
  <info>int</info>  <strong>$arg2  </strong>  If <strong>$option</strong> is <info>STREAM_OPTION_BLOCKING</info>: This option is not
                set.<info>STREAM_OPTION_READ_TIMEOUT</info>: the timeout in
                microseconds.<info>STREAM_OPTION_WRITE_BUFFER</info>: the requested buffer size.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului. If <strong>$option</strong> is not implemented, <info>false</info> should be
        returned.

<comment>See Also:</comment>
   * <strong>stream_set_blocking()</strong>
   * <strong>stream_set_timeout()</strong>
   * <strong>stream_set_write_buffer()</strong>


id: streamWrapper::stream_stat
type: function
doc:
<comment>Description:</comment>
  Retrieve information about a file resource
  
  This method is called in response to <strong>fstat()</strong>.

<comment>Return:</comment>
  <info>array</info>  See <strong>stat()</strong>.

<comment>See Also:</comment>
   * <strong>stat()</strong>
   * streamwrapper::url_stat


id: streamWrapper::stream_tell
type: function
doc:
<comment>Description:</comment>
  Retrieve the current position of a stream
  
  This method is called in response to <strong>fseek()</strong> to determine the current position.

<comment>Return:</comment>
  <info>int</info>  Should return the current position of the stream.

<comment>See Also:</comment>
   * streamWrapper::stream_tell


id: streamWrapper::stream_truncate
type: function
doc:
<comment>Description:</comment>
  Truncate stream
  
  Will respond to truncation, e.g., through <strong>ftruncate()</strong>.

<comment>Param:</comment>
  <info>int</info>  <strong>$new_size</strong>  The new size.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>ftruncate()</strong>


id: streamWrapper::stream_write
type: function
doc:
<comment>Description:</comment>
  Write to stream
  
  This method is called in response to <strong>fwrite()</strong>.
  
  Remember to update the current position of the stream by number of bytes that were successfully
  written.

<comment>Param:</comment>
  <info>string</info>  <strong>$data</strong>  Should be stored into the underlying stream.
                 
                 If there is not enough room in the underlying stream, store as much as possible.

<comment>Return:</comment>
  <info>int</info>  Should return the number of bytes that were successfully stored, or 0 if none could be
       stored.

<comment>See Also:</comment>
   * <strong>fwrite()</strong>


id: streamWrapper::unlink
type: function
doc:
<comment>Description:</comment>
  Delete a file
  
  This method is called in response to <strong>unlink()</strong>.
  
  In order for the appropriate error message to be returned this method should not be defined if the
  wrapper does not support removing files.

<comment>Param:</comment>
  <info>string</info>  <strong>$path</strong>  The file URL which should be deleted.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>unlink()</strong>
   * streamWrapper::rmdir


id: streamWrapper::url_stat
type: function
doc:
<comment>Description:</comment>
  Retrieve information about a file
  
  This method is called in response to all <strong>stat()</strong> related functions, such as:
  <strong>copy()</strong><strong>fileperms()</strong><strong>fileinode()</strong><strong>filesize()</strong><strong>fileowner()</strong><strong>filegroup()</strong><strong>fileatime()</strong><strong>filemtime()</strong><strong>filectime()</strong><strong>filetype()</strong><strong>is_writable()</strong><strong>is_readable()</strong><strong>is_executable()</strong><strong>is_file()</strong><strong>is_dir()</strong><strong>is_link()</strong><strong>file_exists()</strong><strong>lstat()</strong><strong>stat()</strong>SplFileInfo::getPermsSplFileInfo::getInodeSplFileInfo::getSizeSplFileInfo::getOwnerSplFileInfo::getGroupSplFileInfo::getATimeSplFileInfo::getMTimeSplFileInfo::getCTimeSplFileInfo::getTypeSplFileInfo::isWritableSplFileInfo::isReadableSplFileInfo::isExecutableSplFileInfo::isFileSplFileInfo::isDirSplFileInfo::isLinkRecursiveDirectoryIterator::hasChildren

<comment>Param:</comment>
  <info>string</info>  <strong>$path </strong>  The file path or URL to stat.  Note that in the case of a URL, it must be a ://
                  delimited URL.  Other URL forms are not supported.
  <info>int   </info>  <strong>$flags</strong>  Holds additional flags set by the streams API. It can hold one or more of the
                  following values OR'd together. FlagDescriptionSTREAM_URL_STAT_LINK For resources
                  with the ability to link to other resource (such as an HTTP Location: forward, or
                  a filesystem symlink).  This flag specified that only information about the link
                  itself should be returned, not the resource pointed to by the link.  This flag is
                  set in response to calls to <strong>lstat()</strong>, <strong>is_link()</strong>, or <strong>filetype()</strong>.
                  STREAM_URL_STAT_QUIETIf this flag is set, your wrapper should not raise any
                  errors.  If this flag is not set, you are responsible for reporting errors using
                  the <strong>trigger_error()</strong> function during stating of the path.

<comment>Return:</comment>
  <info>array</info>  Should return as many elements as <strong>stat()</strong> does. Unknown or unavailable values should be set
         to a rational value (usually <info>0</info>). Pay special attention to <return>mode</return> as documented under <strong>stat()</strong>.

<comment>See Also:</comment>
   * <strong>stat()</strong>
   * streamwrapper::stream_stat


id: stream_bucket_append
type: function
doc:
<comment>Description:</comment>
  Append bucket to brigade
    
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Return:</comment>
  <info>void</info>  


id: stream_bucket_make_writeable
type: function
doc:
<comment>Description:</comment>
  Return a bucket object from the brigade for operating on
    
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Return:</comment>
  <info>object</info>  


id: stream_bucket_new
type: function
doc:
<comment>Description:</comment>
  Create a new bucket for use on the current stream
    
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Return:</comment>
  <info>object</info>  


id: stream_bucket_prepend
type: function
doc:
<comment>Description:</comment>
  Prepend bucket to brigade
    
  
  This function can be called to prepend a bucket to a bucket brigade. It is typically called from
  php_user_filter::filter.

<comment>Param:</comment>
  <info>resource</info>  <strong>$brigade</strong>  <strong>$brigade</strong> is a resource pointing to a <return>bucket brigade</return> which contains one or more
                      <return>bucket</return> objects.
  <info>object  </info>  <strong>$bucket </strong>  A bucket object.

<comment>Return:</comment>
  <info>void</info>  Nu este întoarsă nici o valoare.


id: stream_context_create
type: function
doc:
<comment>Description:</comment>
  Creates a stream context
  
  Creates and returns a stream context with any options supplied in <strong>$options</strong> preset.

<comment>Param:</comment>
  <info>array</info>  <strong>$options</strong>  Must be an associative array of associative arrays in the format
                   <return>$arr['wrapper']['option'] = $value</return>. Refer to context options for a list of
                   available wrappers and options.
                   
                   Default to an empty array.
  <info>array</info>  <strong>$params </strong>  Must be an associative array in the format <return>$arr['parameter'] = $value</return>. Refer to
                   context parameters for a listing of standard stream parameters.

<comment>Return:</comment>
  <info>resource</info>  A stream context <info>resource</info>.

<comment>See Also:</comment>
   * <strong>stream_context_set_option()</strong>
   * Listing of supported wrappers ()
   * Context options ()


id: stream_context_get_default
type: function
doc:
<comment>Description:</comment>
  Retrieve the default stream context
  
  Returns the default stream context which is used whenever file operations (<strong>fopen()</strong>,
  <strong>file_get_contents()</strong>, etc...) are called without a context parameter.  Options for the default
  context can optionally be specified with this function using the same syntax as
  <strong>stream_context_create()</strong>.

<comment>Param:</comment>
  <info>array</info>  <strong>$options</strong>  <strong>$options</strong> must be an associative array of associative arrays in the format
                   <return>$arr['wrapper']['option'] = $value</return>.
                   
                   As of PHP 5.3.0, the <strong>stream_context_set_default()</strong> function can be used to set the
                   default context.

<comment>Return:</comment>
  <info>resource</info>  A stream context <info>resource</info>.

<comment>See Also:</comment>
   * <strong>stream_context_create()</strong>
   * Listing of supported wrappers with context options ().


id: stream_context_get_options
type: function
doc:
<comment>Description:</comment>
  Retrieve options for a stream/wrapper/context
  
  Returns an array of options on the specified stream or context.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stream_or_context</strong>  The <info>stream</info> or <info>context</info> to get options from

<comment>Return:</comment>
  <info>array</info>  Returns an associative array with the options.


id: stream_context_get_params
type: function
doc:
<comment>Description:</comment>
  Retrieves parameters from a context
  
  Retrieves parameter and options information from the stream or context.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stream_or_context</strong>  A stream <info>resource</info> or a context <info>resource</info>

<comment>Return:</comment>
  <info>array</info>  Returns an associate array containing all context options and parameters.

<comment>See Also:</comment>
   * <strong>stream_context_set_option()</strong>
   * <strong>stream_context_set_params()</strong>


id: stream_context_set_default
type: function
doc:
<comment>Description:</comment>
  Set the default stream context
  
  Set the default stream context which will be used whenever file operations (<strong>fopen()</strong>,
  <strong>file_get_contents()</strong>, etc...) are called without a context parameter. Uses the same syntax as
  <strong>stream_context_create()</strong>.

<comment>Param:</comment>
  <info>array</info>  <strong>$options</strong>  The options to set for the default context.
                   
                   <strong>$options</strong> must be an associative array of associative arrays in the format
                   <return>$arr['wrapper']['option'] = $value</return>.

<comment>Return:</comment>
  <info>resource</info>  Returns the default stream context.

<comment>See Also:</comment>
   * <strong>stream_context_create()</strong>
   * <strong>stream_context_get_default()</strong>
   * Listing of supported wrappers with context options ().


id: stream_context_set_option
type: function
doc:
<comment>Description:</comment>
  Sets an option for a stream/wrapper/context
  
  Sets an option on the specified context.  <strong>$value</strong> is set to <strong>$option</strong> for <strong>$wrapper</strong>

<comment>Param:</comment>
  <info>resource</info>  <strong>$stream_or_context</strong>  The stream or context resource to apply the options to.
  <info>array   </info>  <strong>$options          </strong>  The options to set for <strong>$stream_or_context</strong>.
                                
                                <strong>$options</strong> must be an associative array of associative arrays in the
                                format <return>$arr['wrapper']['option'] = $value</return>.
                                
                                Refer to context options and parameters for a listing of stream
                                options.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.


id: stream_context_set_params
type: function
doc:
<comment>Description:</comment>
  Set parameters for a stream/wrapper/context
  
  Sets parameters on the specified context.

<comment>Param:</comment>
  <info>resource</info>  <strong>$context</strong>  The stream or context to apply the parameters too.
  <info>array   </info>  <strong>$params </strong>  An array of parameters to set.
                      
                      <strong>$params</strong> should be an associative array of the structure: <return>$params['paramname']
                      = "paramvalue";</return>.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>stream_notification_callback()</strong>


id: stream_copy_to_stream
type: function
doc:
<comment>Description:</comment>
  Copies data from one stream to another
  
  Makes a copy of up to <strong>$maxlength</strong> bytes of data from the current position (or from the <strong>$offset</strong>
  position, if specified) in <strong>$source</strong> to <strong>$dest</strong>. If <strong>$maxlength</strong> is not specified, all remaining content
  in <strong>$source</strong> will be copied.

<comment>Param:</comment>
  <info>resource</info>  <strong>$source   </strong>  The source stream
  <info>resource</info>  <strong>$dest     </strong>  The destination stream
  <info>int     </info>  <strong>$maxlength</strong>  Maximum bytes to copy
  <info>int     </info>  <strong>$offset   </strong>  The offset where to start to copy data

<comment>Return:</comment>
  <info>intfalse</info>  Returns the total count of bytes copied,  sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>copy()</strong>


id: stream_filter_append
type: function
doc:
<comment>Description:</comment>
  Attach a filter to a stream
  
  Adds <strong>$filtername</strong> to the list of filters attached to <strong>$stream</strong>.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stream    </strong>  The target stream.
  <info>string  </info>  <strong>$filtername</strong>  The filter name.
  <info>int     </info>  <strong>$read_write</strong>  By default, <strong>stream_filter_append()</strong> will attach the filter to the <return>read
                         filter chain</return> if the file was opened for reading (i.e. File Mode: <return>r</return>, and/or
                         <return>+</return>).  The filter will also be attached to the <return>write filter chain</return> if the file
                         was opened for writing (i.e. File Mode: <return>w</return>, <return>a</return>, and/or <return>+</return>).
                         <info>STREAM_FILTER_READ</info>, <info>STREAM_FILTER_WRITE</info>, and/or <info>STREAM_FILTER_ALL</info> can also
                         be passed to the <strong>$read_write</strong> parameter to override this behavior.
  <info>mixed   </info>  <strong>$params    </strong>  This filter will be added with the specified  <strong>$params</strong> to the end of the
                         list and will therefore be called last during stream operations. To add a
                         filter to the beginning of the list, use <strong>stream_filter_prepend()</strong>.

<comment>Return:</comment>
  <info>resource</info>  Returns a resource on success or <info>false</info> on failure. The resource can be used to refer to
            this filter instance during a call to <strong>stream_filter_remove()</strong>.
            
            <info>false</info> is returned if <strong>$stream</strong> is not a resource or if <strong>$filtername</strong> cannot be located.

<comment>See Also:</comment>
   * <strong>stream_filter_register()</strong>
   * <strong>stream_filter_prepend()</strong>
   * <strong>stream_get_filters()</strong>


id: stream_filter_prepend
type: function
doc:
<comment>Description:</comment>
  Attach a filter to a stream
  
  Adds <strong>$filtername</strong> to the list of filters attached to <strong>$stream</strong>.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stream    </strong>  The target stream.
  <info>string  </info>  <strong>$filtername</strong>  The filter name.
  <info>int     </info>  <strong>$read_write</strong>  By default, <strong>stream_filter_prepend()</strong> will attach the filter to the <return>read
                         filter chain</return> if the file was opened for reading (i.e. File Mode: <return>r</return>, and/or
                         <return>+</return>).  The filter will also be attached to the <return>write filter chain</return> if the file
                         was opened for writing (i.e. File Mode: <return>w</return>, <return>a</return>, and/or <return>+</return>).
                         <info>STREAM_FILTER_READ</info>, <info>STREAM_FILTER_WRITE</info>, and/or <info>STREAM_FILTER_ALL</info> can also
                         be passed to the <strong>$read_write</strong> parameter to override this behavior. See
                         <strong>stream_filter_append()</strong> for an example of using this parameter.
  <info>mixed   </info>  <strong>$params    </strong>  This filter will be added with the specified <strong>$params</strong> to the beginning of
                         the list and will therefore be called first during stream operations.  To
                         add a filter to the end of the list, use <strong>stream_filter_append()</strong>.

<comment>Return:</comment>
  <info>resource</info>  Returns a resource on success or <info>false</info> on failure. The resource can be used to refer to
            this filter instance during a call to <strong>stream_filter_remove()</strong>.
            
            <info>false</info> is returned if <strong>$stream</strong> is not a resource or if <strong>$filtername</strong> cannot be located.

<comment>See Also:</comment>
   * <strong>stream_filter_register()</strong>
   * <strong>stream_filter_append()</strong>


id: stream_filter_register
type: function
doc:
<comment>Description:</comment>
  Register a user defined stream filter
  
  <strong>stream_filter_register()</strong> allows you to implement your own filter on any registered stream used
  with all the other filesystem functions (such as <strong>fopen()</strong>, <strong>fread()</strong> etc.).

<comment>Param:</comment>
  <info>string</info>  <strong>$filter_name</strong>  The filter name to be registered.
  <info>string</info>  <strong>$class      </strong>  To implement a filter, you need to define a class as an extension of
                        <class>php_user_filter</class> with a number of member functions. When performing
                        read/write operations on the stream to which your filter is attached, PHP
                        will pass the data through your filter (and any other filters attached to
                        that stream) so that the data may be modified as desired. You must implement
                        the methods exactly as described in <class>php_user_filter</class> - doing otherwise will
                        lead to undefined behaviour.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.
        
        <strong>stream_filter_register()</strong> will return <info>false</info> if the <strong>$filter_name</strong> is already defined.

<comment>See Also:</comment>
   * <strong>stream_wrapper_register()</strong>
   * <strong>stream_filter_append()</strong>
   * <strong>stream_filter_prepend()</strong>


id: stream_filter_remove
type: function
doc:
<comment>Description:</comment>
  Remove a filter from a stream
  
  Removes a stream filter previously added to a stream with <strong>stream_filter_prepend()</strong> or
  <strong>stream_filter_append()</strong>.  Any data remaining in the filter's internal buffer will be flushed
  through to the next filter before removing it.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stream_filter</strong>  The stream filter to be removed.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>stream_filter_register()</strong>
   * <strong>stream_filter_append()</strong>
   * <strong>stream_filter_prepend()</strong>


id: stream_get_contents
type: function
doc:
<comment>Description:</comment>
  Reads remainder of a stream into a string
  
  Identical to <strong>file_get_contents()</strong>, except that <strong>stream_get_contents()</strong> operates on an already open
  stream resource and returns the remaining contents in a string, up to <strong>$maxlength</strong> bytes and
  starting at the specified <strong>$offset</strong>.

<comment>Param:</comment>
  <info>resource</info>  <strong>$handle   </strong>  A stream resource (e.g. returned from <strong>fopen()</strong>)
  <info>int     </info>  <strong>$maxlength</strong>  The maximum bytes to read. Defaults to -1 (read all the remaining buffer).
  <info>int     </info>  <strong>$offset   </strong>  Seek to the specified offset before reading. If this number is negative, no
                        seeking will occur and reading will start from the current position.

<comment>Return:</comment>
  <info>stringfalse</info>  Returns a string sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>fgets()</strong>
   * <strong>fread()</strong>
   * <strong>fpassthru()</strong>


id: stream_get_filters
type: function
doc:
<comment>Description:</comment>
  Retrieve list of registered filters
  
  Retrieve the list of registered filters on the running system.

<comment>Return:</comment>
  <info>array</info>  Returns an indexed array containing the name of all stream filters available.

<comment>See Also:</comment>
   * <strong>stream_filter_register()</strong>
   * <strong>stream_get_wrappers()</strong>


id: stream_get_line
type: function
doc:
<comment>Description:</comment>
  Gets line from stream resource up to a given delimiter
  
  Gets a line from the given handle.
  
  Reading ends when <strong>$length</strong> bytes have been read, when the string specified by <strong>$ending</strong> is found
  (which is not included in the return value), or on EOF (whichever comes first).
  
  This function is nearly identical to <strong>fgets()</strong> except in that it allows end of line delimiters other
  than the standard \n, \r, and \r\n, and does not return the delimiter itself.

<comment>Param:</comment>
  <info>resource</info>  <strong>$handle</strong>  A valid file handle.
  <info>int     </info>  <strong>$length</strong>  The number of bytes to read from the handle.
  <info>string  </info>  <strong>$ending</strong>  An optional string delimiter.

<comment>Return:</comment>
  <info>string</info>  Returns a string of up to <strong>$length</strong> bytes read from the file pointed to by <strong>$handle</strong>.
          
          If an error occurs, returns <info>false</info>.

<comment>See Also:</comment>
   * <strong>fread()</strong>
   * <strong>fgets()</strong>
   * <strong>fgetc()</strong>


id: stream_get_meta_data
type: function
doc:
<comment>Description:</comment>
  Retrieves header/meta data from streams/file pointers
  
  Returns information about an existing <strong>$stream</strong>.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stream</strong>  The stream can be any stream created by <strong>fopen()</strong>, <strong>fsockopen()</strong> and <strong>pfsockopen()</strong>.

<comment>Return:</comment>
  <info>array</info>  The result array contains the following items:
         
         <return>timed_out</return> (bool) - <info>true</info> if the stream timed out while waiting for data on the last call to
         <strong>fread()</strong> or <strong>fgets()</strong>.
         
         <return>blocked</return> (bool) - <info>true</info> if the stream is in blocking IO mode. See <strong>stream_set_blocking()</strong>.
         
         <return>eof</return> (bool) - <info>true</info> if the stream has reached end-of-file.  Note that for socket streams this
         member can be <info>true</info> even when <return>unread_bytes</return> is non-zero.  To determine if there is more data
         to be read, use <strong>feof()</strong> instead of reading this item.
         
         <return>unread_bytes</return> (int) - the number of bytes currently contained in the PHP's own internal
         buffer.
         
         You shouldn't use this value in a script.
         
         <return>stream_type</return> (string) - a label describing the underlying implementation of the stream.
         
         <return>wrapper_type</return> (string) - a label describing the protocol wrapper implementation layered over
         the stream. See  for more information about wrappers.
         
         <return>wrapper_data</return> (mixed) - wrapper specific data attached to this stream.  See  for more
         information about wrappers and their wrapper data.
         
         <return>mode</return> (string) - the type of access required for this stream (see Table 1 of the fopen()
         reference)
         
         <return>seekable</return> (bool) - whether the current stream can be seeked.
         
         <return>uri</return> (string) - the URI/filename associated with this stream.

<comment>See Also:</comment>
   * <strong>get_headers()</strong>
   * $http_response_header


id: stream_get_transports
type: function
doc:
<comment>Description:</comment>
  Retrieve list of registered socket transports
  
  Returns an indexed array containing the name of all socket transports available on the running
  system.

<comment>Return:</comment>
  <info>array</info>  Returns an indexed array of socket transports names.

<comment>See Also:</comment>
   * <strong>stream_get_filters()</strong>
   * <strong>stream_get_wrappers()</strong>


id: stream_get_wrappers
type: function
doc:
<comment>Description:</comment>
  Retrieve list of registered streams
  
  Retrieve list of registered streams available on the running system.

<comment>Return:</comment>
  <info>array</info>  Returns an indexed array containing the name of all stream wrappers available on the
         running system.

<comment>See Also:</comment>
   * <strong>stream_wrapper_register()</strong>


id: stream_is_local
type: function
doc:
<comment>Description:</comment>
  Checks if a stream is a local stream
  
  Checks if a stream, or a URL, is a local one or not.

<comment>Param:</comment>
  <info>resourcestring</info>  <strong>$stream</strong>  The stream <info>resource</info> or URL to check.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.


id: stream_isatty
type: function
doc:
<comment>Description:</comment>
  Check if a stream is a TTY
  
  Determines if stream <strong>$stream</strong> refers to a valid terminal type device. This is a more portable
  version of <strong>posix_isatty()</strong>, since it works on Windows systems too.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stream</strong>  

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.


id: stream_notification_callback
type: function
doc:
<comment>Description:</comment>
  A callback function for the notification context parameter
  
  A <info>callable</info> function, used by the notification context parameter, called during an event.
  
  This is not a real function, only a prototype of how the function should be.

<comment>Param:</comment>
  <info>int   </info>  <strong>$notification_code</strong>  One of the <info>STREAM_NOTIFY_*</info> notification constants.
  <info>int   </info>  <strong>$severity         </strong>  One of the <info>STREAM_NOTIFY_SEVERITY_*</info> notification constants.
  <info>string</info>  <strong>$message          </strong>  Passed if a descriptive message is available for the event.
  <info>int   </info>  <strong>$message_code     </strong>  Passed if a descriptive message code is available for the event.
                              
                              The meaning of this value is dependent on the specific wrapper in use.
  <info>int   </info>  <strong>$bytes_transferred</strong>  If applicable, the <strong>$bytes_transferred</strong> will be populated.
  <info>int   </info>  <strong>$bytes_max        </strong>  If applicable, the <strong>$bytes_max</strong> will be populated.

<comment>Return:</comment>
  <info>void</info>  Nu este întoarsă nici o valoare.

<comment>See Also:</comment>
   * 


id: stream_register_wrapper
type: function
doc:
<comment>Description:</comment>
  Pseudonim pentru stream_wrapper_register
  
  Această funcție este pseudonim pentru:  <strong>stream_wrapper_register()</strong>.


id: stream_resolve_include_path
type: function
doc:
<comment>Description:</comment>
  Resolve filename against the include path
    
  
  Resolve <strong>$filename</strong> against the include path according to the same rules as <strong>fopen()</strong>/<strong>include()</strong>.

<comment>Param:</comment>
  <info>string</info>  <strong>$filename</strong>  The filename to resolve.

<comment>Return:</comment>
  <info>stringfalse</info>  Returns a <info>string</info> containing the resolved absolute filename,  sau <info>false</info> în cazul
               eșecului.


id: stream_select
type: function
doc:
<comment>Description:</comment>
  Runs the equivalent of the select() system call on the given
     arrays of streams with a timeout specified by tv_sec and tv_usec 
  
  The <strong>stream_select()</strong> function accepts arrays of streams and waits for them to change status. Its
  operation is equivalent to that of the <strong>socket_select()</strong> function except in that it acts on streams.

<comment>Param:</comment>
  <info>array</info>  <strong>$read   </strong>  The streams listed in the <strong>$read</strong> array will be watched to see if characters become
                   available for reading (more precisely, to see if a read will not block - in
                   particular, a stream resource is also ready on end-of-file, in which case an
                   <strong>fread()</strong> will return a zero length string).
  <info>array</info>  <strong>$write  </strong>  The streams listed in the <strong>$write</strong> array will be watched to see if a write will not
                   block.
  <info>array</info>  <strong>$except </strong>  The streams listed in the <strong>$except</strong> array will be watched for high priority
                   exceptional ("out-of-band") data arriving.
                   
                   When <strong>stream_select()</strong> returns, the arrays <strong>$read</strong>, <strong>$write</strong> and <strong>$except</strong> are modified
                   to indicate which stream resource(s) actually changed status. The original keys
                   of the <info>array</info>s are preserved.
  <info>int  </info>  <strong>$tv_sec </strong>  The <strong>$tv_sec</strong> and <strong>$tv_usec</strong> together form the timeout parameter, <strong>$tv_sec</strong> specifies
                   the number of seconds while <strong>$tv_usec</strong> the number of microseconds. The <strong>$timeout</strong> is
                   an upper bound on the amount of time that <strong>stream_select()</strong> will wait before it
                   returns. If <strong>$tv_sec</strong> and <strong>$tv_usec</strong> are both set to <return>0</return>, <strong>stream_select()</strong> will not wait
                   for data - instead it will return immediately, indicating the current status of
                   the streams.
                   
                   If <strong>$tv_sec</strong> is <info>null</info> <strong>stream_select()</strong> can block indefinitely, returning only when an
                   event on one of the watched streams occurs (or if a signal interrupts the system
                   call).
                   
                   Using a timeout value of <return>0</return> allows you to instantaneously poll the status of the
                   streams, however, it is NOT a good idea to use a <return>0</return> timeout value in a loop as it
                   will cause your script to consume too much CPU time.
                   
                   It is much better to specify a timeout value of a few seconds, although if you
                   need to be checking and running other code concurrently, using a timeout value of
                   at least <return>200000</return> microseconds will help reduce the CPU usage of your script.
                   
                   Remember that the timeout value is the maximum time that will elapse;
                   <strong>stream_select()</strong> will return as soon as the requested streams are ready for use.
  <info>int  </info>  <strong>$tv_usec</strong>  See <strong>$tv_sec</strong> description.

<comment>Return:</comment>
  <info>int</info>  On success <strong>stream_select()</strong> returns the number of stream resources contained in the modified
       arrays, which may be zero if the timeout expires before anything interesting happens. On
       error <info>false</info> is returned and a warning raised (this can happen if the system call is
       interrupted by an incoming signal).

<comment>See Also:</comment>
   * <strong>stream_set_blocking()</strong>


id: stream_set_blocking
type: function
doc:
<comment>Description:</comment>
  Set blocking/non-blocking mode on a stream
  
  Sets blocking or non-blocking mode on a <strong>$stream</strong>.
  
  This function works for any stream that supports non-blocking mode (currently, regular files and
  socket streams).

<comment>Param:</comment>
  <info>resource</info>  <strong>$stream</strong>  The stream.
  <info>bool    </info>  <strong>$enable</strong>  If <strong>$enable</strong> is <info>false</info>, the given stream will be switched to non-blocking mode,
                     and if <info>true</info>, it will be switched to blocking mode.  This affects calls like
                     <strong>fgets()</strong> and <strong>fread()</strong> that read from the stream.  In non-blocking mode an <strong>fgets()</strong>
                     call will always return right away while in blocking mode it will wait for data
                     to become available on the stream.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>stream_select()</strong>


id: stream_set_chunk_size
type: function
doc:
<comment>Description:</comment>
  Set the stream chunk size
  
  Set the stream chunk size.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stream</strong>  The target stream.
  <info>int     </info>  <strong>$size  </strong>  The desired new chunk size.

<comment>Return:</comment>
  <info>int</info>  Returns the previous chunk size on success.
       
       Will return <info>false</info> if <strong>$size</strong> is less than 1 or greater than <info>PHP_INT_MAX</info>.


id: stream_set_read_buffer
type: function
doc:
<comment>Description:</comment>
  Set read file buffering on the given stream
  
  Sets the read buffer. It's the equivalent of <strong>stream_set_write_buffer()</strong>, but for read operations.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stream</strong>  The file pointer.
  <info>int     </info>  <strong>$size  </strong>  The number of bytes to buffer. If <strong>$size</strong> is 0 then read operations are
                     unbuffered.  This ensures that all reads with <strong>fread()</strong> are completed before
                     other processes are allowed to read from that input stream.

<comment>Return:</comment>
  <info>int</info>  Returns 0 on success, or another value if the request cannot be honored.

<comment>See Also:</comment>
   * <strong>stream_set_write_buffer()</strong>


id: stream_set_timeout
type: function
doc:
<comment>Description:</comment>
  Set timeout period on a stream
  
  Sets the timeout value on <strong>$stream</strong>, expressed in the sum of <strong>$seconds</strong> and <strong>$microseconds</strong>.
  
  When the stream times out, the 'timed_out' key of the array returned by <strong>stream_get_meta_data()</strong> is
  set to <info>true</info>, although no error/warning is generated.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stream      </strong>  The target stream.
  <info>int     </info>  <strong>$seconds     </strong>  The seconds part of the timeout to be set.
  <info>int     </info>  <strong>$microseconds</strong>  The microseconds part of the timeout to be set.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>fsockopen()</strong>
   * <strong>fopen()</strong>


id: stream_set_write_buffer
type: function
doc:
<comment>Description:</comment>
  Sets write file buffering on the given stream
  
  Sets the buffering for write operations on the given <strong>$stream</strong> to <strong>$buffer</strong> bytes.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stream</strong>  The file pointer.
  <info>int     </info>  <strong>$buffer</strong>  The number of bytes to buffer. If <strong>$buffer</strong> is 0 then write operations are
                     unbuffered.  This ensures that all writes with <strong>fwrite()</strong> are completed before
                     other processes are allowed to write to that output stream.

<comment>Return:</comment>
  <info>int</info>  Returns 0 on success, or another value if the request cannot be honored.

<comment>See Also:</comment>
   * <strong>fopen()</strong>
   * <strong>fwrite()</strong>


id: stream_socket_accept
type: function
doc:
<comment>Description:</comment>
  Accept a connection on a socket created by stream_socket_server
  
  Accept a connection on a socket previously created by <strong>stream_socket_server()</strong>.

<comment>Param:</comment>
  <info>resource</info>  <strong>$server_socket</strong>  The server socket to accept a connection from.
  <info>float   </info>  <strong>$timeout      </strong>  Override the default socket accept timeout. Time should be given in
                            seconds.
  <info>string  </info>  <strong>$peername     </strong>  Will be set to the name (address) of the client which connected, if
                            included and available from the selected transport.
                            
                            Can also be determined later using <strong>stream_socket_get_name()</strong>.

<comment>Return:</comment>
  <info>resourcefalse</info>  Returns a stream to the accepted socket connection sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>stream_socket_server()</strong>
   * <strong>stream_socket_get_name()</strong>
   * <strong>stream_set_blocking()</strong>
   * <strong>stream_set_timeout()</strong>
   * <strong>fgets()</strong>
   * <strong>fgetss()</strong>
   * <strong>fwrite()</strong>
   * <strong>fclose()</strong>
   * <strong>feof()</strong>
   * 


id: stream_socket_client
type: function
doc:
<comment>Description:</comment>
  Open Internet or Unix domain socket connection
  
  Initiates a stream or datagram connection to the destination specified by <strong>$remote_socket</strong>.  The
  type of socket created is determined by the transport specified using standard URL formatting:
  <return>transport://target</return>.  For Internet Domain sockets (AF_INET) such as TCP and UDP, the <return>target</return> portion
  of the <strong>$remote_socket</strong> parameter should consist of a hostname or IP address followed by a colon and
  a port number.  For Unix domain sockets, the <strong>$target</strong> portion should point to the socket file on
  the filesystem.
  
  The stream will by default be opened in blocking mode.  You can switch it to non-blocking mode by
  using <strong>stream_set_blocking()</strong>.

<comment>Param:</comment>
  <info>string  </info>  <strong>$remote_socket</strong>  Address to the socket to connect to.
  <info>int     </info>  <strong>$errno        </strong>  Will be set to the system level error number if connection fails.
  <info>string  </info>  <strong>$errstr       </strong>  Will be set to the system level error message if the connection fails.
  <info>float   </info>  <strong>$timeout      </strong>  Number of seconds until the <return>connect()</return> system call should timeout.  This
                            parameter only applies when not making asynchronous connection attempts.
                            To set a timeout for reading/writing data over the socket, use the
                            <strong>stream_set_timeout()</strong>, as the <strong>$timeout</strong> only applies while making
                            connecting the socket.
                            
                            This parameter only applies when not making asynchronous connection
                            attempts.
                            
                            To set a timeout for reading/writing data over the socket, use the
                            <strong>stream_set_timeout()</strong>, as the <strong>$timeout</strong> only applies while making
                            connecting the socket.
  <info>int     </info>  <strong>$flags        </strong>  Bitmask field which may be set to any combination of connection flags.
                            Currently the select of connection flags is limited to
                            <info>STREAM_CLIENT_CONNECT</info> (default), <info>STREAM_CLIENT_ASYNC_CONNECT</info> and
                            <info>STREAM_CLIENT_PERSISTENT</info>.
  <info>resource</info>  <strong>$context      </strong>  A valid context resource created with <strong>stream_context_create()</strong>.

<comment>Return:</comment>
  <info>resource</info>  On success a stream resource is returned which may be used together with the other file
            functions (such as <strong>fgets()</strong>, <strong>fgetss()</strong>, <strong>fwrite()</strong>, <strong>fclose()</strong>, and <strong>feof()</strong>), <info>false</info> on failure.

<comment>See Also:</comment>
   * <strong>stream_socket_server()</strong>
   * <strong>stream_set_blocking()</strong>
   * <strong>stream_set_timeout()</strong>
   * <strong>stream_select()</strong>
   * <strong>fgets()</strong>
   * <strong>fgetss()</strong>
   * <strong>fwrite()</strong>
   * <strong>fclose()</strong>
   * <strong>feof()</strong>
   * 


id: stream_socket_enable_crypto
type: function
doc:
<comment>Description:</comment>
  Turns encryption on/off on an already connected socket
  
  Enable or disable encryption on the stream.
  
  Once the crypto settings are established, cryptography can be turned on and off dynamically by
  passing <info>true</info> or <info>false</info> in the <strong>$enable</strong> parameter.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stream        </strong>  The stream resource.
  <info>bool    </info>  <strong>$enable        </strong>  Enable/disable cryptography on the stream.
  <info>int     </info>  <strong>$crypto_type   </strong>  Setup encryption on the stream. Valid methods are
                             <info>STREAM_CRYPTO_METHOD_SSLv2_CLIENT</info><info>STREAM_CRYPTO_METHOD_SSLv3_CLIENT</info><info>STREAM_CRYPTO_METHOD_SSLv23_CLIENT</info><info>STREAM_CRYPTO_METHOD_ANY_CLIENT</info><info>STREAM_CRYPTO_METHOD_TLS_CLIENT</info><info>STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT</info><info>STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT</info><info>STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT</info><info>STREAM_CRYPTO_METHOD_SSLv2_SERVER</info><info>STREAM_CRYPTO_METHOD_SSLv3_SERVER</info><info>STREAM_CRYPTO_METHOD_SSLv23_SERVER</info><info>STREAM_CRYPTO_METHOD_ANY_SERVER</info><info>STREAM_CRYPTO_METHOD_TLS_SERVER</info><info>STREAM_CRYPTO_METHOD_TLSv1_0_SERVER</info><info>STREAM_CRYPTO_METHOD_TLSv1_1_SERVER</info><info>STREAM_CRYPTO_METHOD_TLSv1_2_SERVER</info>
                             
                             <info>STREAM_CRYPTO_METHOD_SSLv2_CLIENT</info>
                             
                             <info>STREAM_CRYPTO_METHOD_SSLv3_CLIENT</info>
                             
                             <info>STREAM_CRYPTO_METHOD_SSLv23_CLIENT</info>
                             
                             <info>STREAM_CRYPTO_METHOD_ANY_CLIENT</info>
                             
                             <info>STREAM_CRYPTO_METHOD_TLS_CLIENT</info>
                             
                             <info>STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT</info>
                             
                             <info>STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT</info>
                             
                             <info>STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT</info>
                             
                             <info>STREAM_CRYPTO_METHOD_SSLv2_SERVER</info>
                             
                             <info>STREAM_CRYPTO_METHOD_SSLv3_SERVER</info>
                             
                             <info>STREAM_CRYPTO_METHOD_SSLv23_SERVER</info>
                             
                             <info>STREAM_CRYPTO_METHOD_ANY_SERVER</info>
                             
                             <info>STREAM_CRYPTO_METHOD_TLS_SERVER</info>
                             
                             <info>STREAM_CRYPTO_METHOD_TLSv1_0_SERVER</info>
                             
                             <info>STREAM_CRYPTO_METHOD_TLSv1_1_SERVER</info>
                             
                             <info>STREAM_CRYPTO_METHOD_TLSv1_2_SERVER</info>
                             
                             If omitted, the <return>crypto_method</return> context option on the stream's SSL
                             context will be used instead.
  <info>resource</info>  <strong>$session_stream</strong>  Seed the stream with settings from <strong>$session_stream</strong>.

<comment>Return:</comment>
  <info>mixed</info>  Returns <info>true</info> on success, <info>false</info> if negotiation has failed or <return>0</return> if there isn't enough data
         and you should try again (only for non-blocking sockets).

<comment>See Also:</comment>
   * 
   * 


id: stream_socket_get_name
type: function
doc:
<comment>Description:</comment>
  Retrieve the name of the local or remote sockets
  
  Returns the local or remote name of a given socket connection.

<comment>Param:</comment>
  <info>resource</info>  <strong>$handle   </strong>  The socket to get the name of.
  <info>bool    </info>  <strong>$want_peer</strong>  If set to <info>true</info> the <return>remote</return> socket name will be returned, if set to <info>false</info> the
                        <return>local</return> socket name will be returned.

<comment>Return:</comment>
  <info>string</info>  The name of the socket.

<comment>See Also:</comment>
   * <strong>stream_socket_accept()</strong>


id: stream_socket_pair
type: function
doc:
<comment>Description:</comment>
  Creates a pair of connected, indistinguishable socket streams
    
  
  <strong>stream_socket_pair()</strong> creates a pair of connected, indistinguishable socket streams. This function
  is commonly used in IPC (Inter-Process Communication).

<comment>Param:</comment>
  <info>int</info>  <strong>$domain  </strong>  The protocol family to be used: <info>STREAM_PF_INET</info>, <info>STREAM_PF_INET6</info> or <info>STREAM_PF_UNIX</info>
  <info>int</info>  <strong>$type    </strong>  The type of communication to be used: <info>STREAM_SOCK_DGRAM</info>, <info>STREAM_SOCK_RAW</info>,
                  <info>STREAM_SOCK_RDM</info>, <info>STREAM_SOCK_SEQPACKET</info> or <info>STREAM_SOCK_STREAM</info>
  <info>int</info>  <strong>$protocol</strong>  The protocol to be used: <info>STREAM_IPPROTO_ICMP</info>, <info>STREAM_IPPROTO_IP</info>,
                  <info>STREAM_IPPROTO_RAW</info>, <info>STREAM_IPPROTO_TCP</info> or <info>STREAM_IPPROTO_UDP</info>

<comment>Return:</comment>
  <info>arrayfalse</info>  Returns an <info>array</info> with the two socket resources on success, or <info>false</info> on failure.


id: stream_socket_recvfrom
type: function
doc:
<comment>Description:</comment>
  Receives data from a socket, connected or not 
  
  <strong>stream_socket_recvfrom()</strong> accepts data from a remote socket up to <strong>$length</strong> bytes.

<comment>Param:</comment>
  <info>resource</info>  <strong>$socket </strong>  The remote socket.
  <info>int     </info>  <strong>$length </strong>  The number of bytes to receive from the <strong>$socket</strong>.
  <info>int     </info>  <strong>$flags  </strong>  The value of <strong>$flags</strong> can be any combination of the following: Possible values
                      for <strong>$flags</strong><info>STREAM_OOB</info> Process OOB (<return>out-of-band</return>) data. <info>STREAM_PEEK</info> Retrieve data
                      from the socket, but do not consume the buffer. Subsequent calls to <strong>fread()</strong> or
                      <strong>stream_socket_recvfrom()</strong> will see the same data.
  <info>string  </info>  <strong>$address</strong>  If <strong>$address</strong> is provided it will be populated with the address of the remote
                      socket.

<comment>Return:</comment>
  <info>string</info>  Returns the read data, as a string

<comment>See Also:</comment>
   * <strong>stream_socket_sendto()</strong>
   * <strong>stream_socket_client()</strong>
   * <strong>stream_socket_server()</strong>


id: stream_socket_sendto
type: function
doc:
<comment>Description:</comment>
  Sends a message to a socket, whether it is connected or not 
  
  Sends the specified <strong>$data</strong> through the <strong>$socket</strong>.

<comment>Param:</comment>
  <info>resource</info>  <strong>$socket </strong>  The socket to send <strong>$data</strong> to.
  <info>string  </info>  <strong>$data   </strong>  The data to be sent.
  <info>int     </info>  <strong>$flags  </strong>  The value of <strong>$flags</strong> can be any combination of the following: possible values
                      for <strong>$flags</strong><info>STREAM_OOB</info> Process OOB (out-of-band) data.
  <info>string  </info>  <strong>$address</strong>  The address specified when the socket stream was created will be used unless
                      an alternate address is specified in <strong>$address</strong>.
                      
                      If specified, it must be in dotted quad (or [ipv6]) format.

<comment>Return:</comment>
  <info>int</info>  Returns a result code, as an integer.

<comment>See Also:</comment>
   * <strong>stream_socket_recvfrom()</strong>
   * <strong>stream_socket_client()</strong>
   * <strong>stream_socket_server()</strong>


id: stream_socket_server
type: function
doc:
<comment>Description:</comment>
  Create an Internet or Unix domain server socket
  
  Creates a stream or datagram socket on the specified <strong>$local_socket</strong>.
  
  This function only creates a socket, to begin accepting connections use <strong>stream_socket_accept()</strong>.

<comment>Param:</comment>
  <info>string  </info>  <strong>$local_socket</strong>  The type of socket created is determined by the transport specified using
                           standard URL formatting: <return>transport://target</return>.
                           
                           For Internet Domain sockets (<info>AF_INET</info>) such as TCP and UDP, the <return>target</return>
                           portion of the  <strong>$remote_socket</strong> parameter should consist of a hostname or
                           IP address followed by a colon and a port number.  For Unix domain
                           sockets, the <return>target</return> portion should point to the socket file on the
                           filesystem.
                           
                           Depending on the environment, Unix domain sockets may not be available. A
                           list of available transports can be retrieved using
                           <strong>stream_get_transports()</strong>. See  for a list of bulitin transports.
  <info>int     </info>  <strong>$errno       </strong>  If the optional <strong>$errno</strong> and <strong>$errstr</strong> arguments are present they will be set
                           to indicate the actual system level error that occurred in the
                           system-level <return>socket()</return>, <return>bind()</return>, and <return>listen()</return> calls. If the value returned
                           in <strong>$errno</strong> is  <return>0</return> and the function returned <info>false</info>, it is an indication that
                           the error occurred before the <return>bind()</return> call. This is most likely due to a
                           problem initializing the socket.  Note that the <strong>$errno</strong> and <strong>$errstr</strong>
                           arguments will always be passed by reference.
  <info>string  </info>  <strong>$errstr      </strong>  See <strong>$errno</strong> description.
  <info>int     </info>  <strong>$flags       </strong>  A bitmask field which may be set to any combination of socket creation
                           flags.
                           
                           For UDP sockets, you must use <info>STREAM_SERVER_BIND</info> as the <strong>$flags</strong> parameter.
  <info>resource</info>  <strong>$context     </strong>  

<comment>Return:</comment>
  <info>resource</info>  Returns the created stream, or <info>false</info> on error.

<comment>See Also:</comment>
   * <strong>stream_socket_client()</strong>
   * <strong>stream_set_blocking()</strong>
   * <strong>stream_set_timeout()</strong>
   * <strong>fgets()</strong>
   * <strong>fgetss()</strong>
   * <strong>fwrite()</strong>
   * <strong>fclose()</strong>
   * <strong>feof()</strong>
   * Curl extension


id: stream_socket_shutdown
type: function
doc:
<comment>Description:</comment>
  Shutdown a full-duplex connection
  
  Shutdowns (partially or not) a full-duplex connection.
  
  The associated buffer, or buffers, may or may not be emptied.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stream</strong>  An open stream (opened with <strong>stream_socket_client()</strong>, for example)
  <info>int     </info>  <strong>$mode  </strong>  One of the following constants: <info>STREAM_SHUT_RD</info> (disable further receptions),
                     <info>STREAM_SHUT_WR</info> (disable further transmissions) or <info>STREAM_SHUT_RDWR</info> (disable
                     further receptions and transmissions).

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>fclose()</strong>


id: stream_supports_lock
type: function
doc:
<comment>Description:</comment>
  Tells whether the stream supports locking
  
  Tells whether the stream supports locking through  <strong>flock()</strong>.

<comment>Param:</comment>
  <info>resource</info>  <strong>$stream</strong>  The stream to check.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>flock()</strong>


id: stream_wrapper_register
type: function
doc:
<comment>Description:</comment>
  Register a URL wrapper implemented as a PHP class
  
  Allows you to implement your own protocol handlers and streams for use with all the other
  filesystem functions (such as <strong>fopen()</strong>, <strong>fread()</strong> etc.).

<comment>Param:</comment>
  <info>string</info>  <strong>$protocol</strong>  The wrapper name to be registered.
  <info>string</info>  <strong>$class   </strong>  The classname which implements the <strong>$protocol</strong>.
  <info>int   </info>  <strong>$flags   </strong>  Should be set to <info>STREAM_IS_URL</info> if <strong>$protocol</strong> is a URL protocol. Default is 0,
                     local stream.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.
        
        <strong>stream_wrapper_register()</strong> will return <info>false</info> if the <strong>$protocol</strong> already has a handler.

<comment>See Also:</comment>
   * The  prototype class
   * 
   * <strong>stream_wrapper_unregister()</strong>
   * <strong>stream_wrapper_restore()</strong>
   * <strong>stream_get_wrappers()</strong>


id: stream_wrapper_restore
type: function
doc:
<comment>Description:</comment>
  Restores a previously unregistered built-in wrapper
  
  Restores a built-in wrapper previously unregistered with <strong>stream_wrapper_unregister()</strong>.

<comment>Param:</comment>
  <info>string</info>  <strong>$protocol</strong>  

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.


id: stream_wrapper_unregister
type: function
doc:
<comment>Description:</comment>
  Unregister a URL wrapper
  
  Allows you to disable an already defined stream wrapper. Once the wrapper has been disabled you
  may override it with a user-defined wrapper using <strong>stream_wrapper_register()</strong> or reenable it later
  on with <strong>stream_wrapper_restore()</strong>.

<comment>Param:</comment>
  <info>string</info>  <strong>$protocol</strong>  

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.


id: strftime
type: function
doc:
<comment>Description:</comment>
  Formatează o oră/dată locală în conformitate cu setările locale
  
  Formatează ora și/sau data în conformitate cu setările locale. Denumirile lunilor și a zilelor
  săptămânii și alte string-uri dependente de limbă sunt în conformitate cu setările locale
  stabilite prin fincția <strong>setlocale()</strong>.
  
  Nu toate specificările de convertire pot fi susținute de biblioteca dumneavoastră C, în care caz
  ele nu vor fi susținute de funcția PHP <strong>strftime()</strong>. În plus, nu toate platformele susțin
  timestamp-uri negative, de aceea domeniul de date poate fi limitat la valori nu mai mici de Epoca
  Unix. Aceasta înseamnă că %e, %T, %R și %D (pot fi mai multe), precum și date anterioare la <return>Jan 1,
  1970</return> nu vor funcționa în Windows, unele distibuții Linux, și alte câteva sisteme de operare.
  Pentru sisteme Windows o privire de ansamblu a specificatorilor de conversie susținuți poate fi
  găsită pe acest website MSDN.

<comment>Param:</comment>
  <info>string</info>  <strong>$format   </strong>  Următoarele caractere sunt recunoscute în cadrul parametrului
                      <strong>$format</strong><strong>$format</strong>DescriereExemplu de valori întoarseZiua------<return>%a</return>Reprezentarea
                      textuală abreviată a zilei săptămâniiDe la <return>Sun</return> până la <return>Sat</return><return>%A</return>Reprezentarea
                      textuală deplină a zilei săptămâniiDe la <return>Sunday</return> până la <return>Saturday</return><return>%d</return>Ziua lunii
                      din două cifre (prefixată cu zero)De la <return>01</return> până la <return>31</return><return>%e</return> Ziua lunii prefixată
                      cu spațiu în cazul unei singure cifre. Implementarea pentru Windows nu
                      coincide cu descrierea. Găsiți mai jos informații suplimentare. De la <return> 1</return> până
                      la <return>31</return><return>%j</return>Ziua anului, 3 cifre prefixate cu zerouriDe la <return>001</return> până la
                      <return>366</return><return>%u</return>Reprezentarea numerică a zilei săptămânii în conformitate cu ISO-8601De
                      la <return>1</return> (Luni) până la <return>7</return> (Duminică)<return>%w</return>Reprezentarea numerică a zilei săptămâniiDe
                      la <return>0</return> (Duminică) până la <return>6</return> (Sâmbătă)Săptămâna------<return>%U</return>Numărul săptămânii anului
                      dat. Prima Duminică din an este începutul primei săptămâni<return>13</return> (pentru a 13-a
                      săptămână deplină a anului)<return>%V</return>Numărul săptămânii anului dat în conformitate cu
                      ISO-8601:1988, începând cu prima săptămână a anului cu cel puțin 4 zile de
                      lucru, ziua de Luni fiind prima zi a săptămâniiDe la <return>01</return> până la <return>53</return> (unde 53
                      reprezintă o săptămână suprapusă)<return>%W</return>Reprezentarea numerică a săptămânii din an,
                      începând cu prima zi de Luni ca prima săptămână<return>46</return> (pentru a 46-a săptămână a
                      anului începând cu Luni)Luna------<return>%b</return>Denumirea abreviată a lunii bazată pe
                      setările localeDe la <return>Jan</return> până la <return>Dec</return><return>%B</return>Denumirea deplină a lunii bazată pe
                      setările localeDe la <return>January</return> până la <return>December</return><return>%h</return>Denumirea abreviată a lunii
                      bazată pe setările locale (un pseudonim pentru %b)De la <return>Jan</return> până la
                      <return>Dec</return><return>%m</return>Reprezentarea din două cifre a luniiDe la <return>01</return> (Ianuarie) până la <return>12</return>
                      (Decembrie)Anul------<return>%C</return>Reprezentarea din două cifre a secolului (anul divizat
                      la 100, trunchiat până la un întreg)<return>19</return> pentru secolul 20<return>%g</return>Reprezentarea din
                      două cifre a anului conform standardului ISO-8601:1988 (vezi %V)Exemplu: <return>09</return>
                      pentru 6 Ianuarie, 2009<return>%G</return>Versiunea deplină din patru cifre a %gExemplu: <return>2008</return>
                      pentru 3 Ianuarie 2009<return>%y</return>Reprezentarea din două cifre a anuluiExemplu: <return>09</return>
                      pentru 2009, <return>79</return> pentru 1979<return>%Y</return>Reprezentarea din patru cifre a anuluiExemplu:
                      <return>2038</return>Ora------<return>%H</return>Reprezentarea din două cifre a orei în formatul cu 24 de oreDe
                      la <return>00</return> până la <return>23</return><return>%k</return>Ora, în format cu 24 de ore, cu un spațiu în fața unei
                      singure cifreDe la <return> 0</return> până la <return>23</return><return>%I</return>Reprezentarea din două cifre a orei în
                      formatul cu 12 oreDe la <return>01</return> până la <return>12</return><return>%l (litera minusculă 'L')</return>Ora în formatul
                      cu 12 ore, cu un spațiu înaintea orei cu o singură cifrăDe la <return> 1</return> până la
                      <return>12</return><return>%M</return>Reprezentarea din două cifre a minuteiDe la <return>00</return> până la <return>59</return><return>%p</return>'AM' sau 'PM'
                      cu litere majuscule în dependență de orăExemplu: <return>AM</return> pentru 00:31, <return>PM</return> pentru
                      22:23<return>%P</return>'am' sau 'pm' cu litere minuscule în dependență de orăExemplu: <return>am</return>
                      pentru 00:31, <return>pm</return> pentru 22:23<return>%r</return>Echivalent cu "%I:%M:%S %p"Exemplu: <return>09:34:17 PM</return>
                      pentru 21:34:17<return>%R</return>Echivalent cu "%H:%M"Exemplu: <return>00:35</return> pentru 12:35 AM, <return>16:44</return>
                      pentru 4:44 PM<return>%S</return>Reprezentarea din două cifre a secundeiDe la <return>00</return> până la
                      <return>59</return><return>%T</return>Echivalent cu "%H:%M:%S"Exemplu: <return>21:34:17</return> pentru 09:34:17
                      PM<return>%X</return>Reprezentarea preferențială a orei în baza setărilor locale, fără
                      datăExemplu: <return>03:59:16</return> sau <return>15:59:16</return><return>%z</return>Deplasamentul fusului orar. Nu este
                      implementat după cum este descris în Windows. Vedeți mai jos pentru informații
                      suplimentare.Exemplu: <return>-0500</return> pentru US Eastern Time<return>%Z</return>Abrevierea fusului orar.
                      Nu este implementat după cum este descris în Windows. Vedeți mai jos pentru
                      informații suplimentare.Exemplu: <return>EST</return> pentru Eastern TimeData și
                      ora------<return>%c</return>Reprezentarea preferențială a datei și orei bazate pe setările
                      localeExemplu: <return>Tue Feb  5 00:45:10 2009</return> pentru 5 februarie 2009, ora 12:45:10
                      AM<return>%D</return>Echivalent cu "%m/%d/%y"Exemplu: <return>02/05/09</return> pentru February 5,
                      2009<return>%F</return>Echivalent cu "%Y-%m-%d" (utilizat deseori la bazele de date)Exemplu:
                      <return>2009-02-05</return> pentru February 5, 2009<return>%s</return>Momentul de timp după Epoca Unix (la fel
                      ca și în cazul funcției <strong>time()</strong>)Exemplu: <return>305815200</return> pentru September 10, 1979
                      08:40:00 AM<return>%x</return>Reprezentarea preferențială a datei în baza setărilor locale,
                      fără orăExemplu: <return>02/05/09</return> pentru February 5, 2009Diverse------<return>%n</return>Trecerea la
                      linie nouă ("\n")---<return>%t</return>Caracterul Tab ("\t")---<return>%%</return>Caracterul "procent" ("%")---
                      
                      Lungimea maximă a acestui parametru este de 1023 caractere.
                      
                      Contrar standardului ISO-9899:1999, Sun Solaris pune în corespondență zilei de
                      Duminică numărul 1. Ca rezultat, <return>%u</return> poate să nu funcționeze după cum este
                      descris în acest manual.
                      
                      Doar pentru Windows:
                      
                      Modificatorul <return>%e</return> nu este susținut în implementarea Windows a acestei funcții.
                      Pentru a obține un rezultat analogic, utilizați modificatorul <return>%#d</return> în loc.
                      Exemplul de mai jos ilustrează modalitatea de a scrie o funcție compatibilă cu
                      orice platformă.
                      
                      Modificatorii <return>%z</return> și <return>%Z</return> întorc denumirea fusului orar, în loc de deplasament
                      sau abreviere.
                      
                      Doar pentru macOS: Modificatorul <return>%P</return> nu este susținut în implementarea acestei
                      funcții pe macOS.
  <info>int   </info>  <strong>$timestamp</strong>  Parametrul opțional <strong>$timestamp</strong>
                      este un <info>integer</info> și este un moment de timp Unix și are valoarea
                      implicită a orei locale, dacă parametrul <strong>$timestamp</strong> nu
                      este indicat. Cu alte cuvinte, valoarea implicită este cea a funcției
                      <strong>time()</strong>.

<comment>Return:</comment>
  <info>string</info>  Întoarce un string formatat în corespundere cu parametrul <strong>$format</strong>, utilizând <strong>$timestamp</strong>-ul
          dat sau data și ora locală, dacă nu este furnizat un timestamp. Denumirile lunilor și a
          zilelor săptămânii și alte string-uri dependente de limbă sunt în corespundere cu setările
          locale stabilite cu <strong>setlocale()</strong>.

<comment>See Also:</comment>
   * Instrumentul
     online pentru proiectarea formatelor strftime()
   * <strong>setlocale()</strong>
   * <strong>mktime()</strong>
   * <strong>strptime()</strong>
   * <strong>gmstrftime()</strong>
   * Specificația Open Group a <strong>strftime()</strong>


id: strip_tags
type: function
doc:
<comment>Description:</comment>
  Strip HTML and PHP tags from a string
  
  This function tries to return a string with all NULL bytes, HTML and PHP tags stripped from a
  given <strong>$string</strong>.  It uses the same tag stripping state machine as the <strong>fgetss()</strong> function.

<comment>Param:</comment>
  <info>string         </info>  <strong>$string      </strong>  The input string.
  <info>arraystringnull</info>  <strong>$allowed_tags</strong>  You can use the optional second parameter to specify tags which
                                  should not be stripped. These are either given as <info>string</info>, or as of
                                  PHP 7.4.0, as <info>array</info>. Refer to the example below regarding the
                                  format of this parameter.
                                  
                                  HTML comments and PHP tags are also stripped. This is hardcoded
                                  and can not be changed with <strong>$allowed_tags</strong>.
                                  
                                  In PHP 5.3.4 and later, self-closing XHTML tags are ignored and
                                  only non-self-closing tags should be used in <strong>$allowed_tags</strong>. For
                                  example, to allow both <return>\<br&gt;</return> and <return>\<br/&gt;</return>, you should use:

<comment>Return:</comment>
  <info>string</info>  Returns the stripped string.

<comment>See Also:</comment>
   * <strong>htmlspecialchars()</strong>


id: stripcslashes
type: function
doc:
<comment>Description:</comment>
  Un-quote string quoted with addcslashes
  
  Returns a string with backslashes stripped off. Recognizes C-like <return>\n</return>, <return>\r</return> ..., octal and
  hexadecimal representation.

<comment>Param:</comment>
  <info>string</info>  <strong>$string</strong>  The string to be unescaped.

<comment>Return:</comment>
  <info>string</info>  Returns the unescaped string.

<comment>See Also:</comment>
   * <strong>addcslashes()</strong>


id: stripos
type: function
doc:
<comment>Description:</comment>
  Find the position of the first occurrence of a case-insensitive substring in a string
  
  Find the numeric position of the first occurrence of <strong>$needle</strong> in the <strong>$haystack</strong> string.
  
  Unlike the <strong>strpos()</strong>, <strong>stripos()</strong> is case-insensitive.

<comment>Param:</comment>
  <info>string</info>  <strong>$haystack</strong>  The string to search in.
  <info>string</info>  <strong>$needle  </strong>  Note that the <strong>$needle</strong> may be a string of one or more characters.
                     
                     Dacă <strong>$needle</strong> nu este un șir de caractere, el este transformat în întreg și
                     aplicat ca valoarea ordinală a caracterului. Acest comportament este învechit
                     începând cu PHP 7.3.0 și utilizarea lui este foarte nerecomandată. În
                     dependență de comportamentul dorit <strong>$needle</strong> trebuie transformat în mod explicit
                     în șir de caractere, sau trebuie efectuat un apel explicit către <strong>chr()</strong>.
  <info>int   </info>  <strong>$offset  </strong>  If specified, search will start this number of characters counted from the
                     beginning of the string. If the offset is negative, the search will start this
                     number of characters counted from the end of the string.

<comment>Return:</comment>
  <info>intfalse</info>  Returns the position of where the needle exists relative to the beginnning of the
            <strong>$haystack</strong> string (independent of offset). Also note that string positions start at 0,
            and not 1.
            
            Returns <info>false</info> if the needle was not found.
            
            Această funcție poate întoarce valoarea Boolean <info>false</info>, dar poate de
            asemenea întoarce o valoare non-Boolean care evaluează în <info>false</info>. Vă rugăm să
            citiți secțiunea despre tipul Boolean
            pentru informații suplimentare. Utilizați
            operatorul === pentru a
            verifica valoarea întoarsă de această funcție.

<comment>See Also:</comment>
   * <strong>mb_stripos()</strong>
   * <strong>str_contains()</strong>
   * <strong>str_ends_with()</strong>
   * <strong>str_starts_with()</strong>
   * <strong>strpos()</strong>
   * <strong>strrpos()</strong>
   * <strong>strripos()</strong>
   * <strong>stristr()</strong>
   * <strong>substr()</strong>
   * <strong>str_ireplace()</strong>


id: stripslashes
type: function
doc:
<comment>Description:</comment>
  Un-quotes a quoted string
  
  Un-quotes a quoted string.
  
  An example use of <strong>stripslashes()</strong> is when the PHP directive magic_quotes_gpc is <return>on</return> (it was on by
  default before PHP 5.4), and you aren't inserting this data into a place (such as a database) that
  requires escaping. For example, if you're simply outputting data straight from an HTML form.

<comment>Param:</comment>
  <info>string</info>  <strong>$string</strong>  The input string.

<comment>Return:</comment>
  <info>string</info>  Returns a string with backslashes stripped off. (<return>\'</return> becomes <return>'</return> and so on.) Double
          backslashes (<return>\\</return>) are made into a single backslash (<return>\</return>).

<comment>See Also:</comment>
   * <strong>addslashes()</strong>
   * <strong>get_magic_quotes_gpc()</strong>


id: stristr
type: function
doc:
<comment>Description:</comment>
  Case-insensitive strstr
  
  Returns all of <strong>$haystack</strong> starting from and including the first occurrence of <strong>$needle</strong> to the end.

<comment>Param:</comment>
  <info>string</info>  <strong>$haystack     </strong>  The string to search in
  <info>string</info>  <strong>$needle       </strong>  Dacă <strong>$needle</strong> nu este un șir de caractere, el este transformat în întreg și
                          aplicat ca valoarea ordinală a caracterului. Acest comportament este
                          învechit începând cu PHP 7.3.0 și utilizarea lui este foarte
                          nerecomandată. În dependență de comportamentul dorit <strong>$needle</strong> trebuie
                          transformat în mod explicit în șir de caractere, sau trebuie efectuat un
                          apel explicit către <strong>chr()</strong>.
  <info>bool  </info>  <strong>$before_needle</strong>  If <info>true</info>, <strong>stristr()</strong> returns the part of the <strong>$haystack</strong> before the first
                          occurrence of the <strong>$needle</strong> (excluding needle).

<comment>Return:</comment>
  <info>stringfalse</info>  Returns the matched substring. If <strong>$needle</strong> is not found, returns <info>false</info>.

<comment>See Also:</comment>
   * <strong>strstr()</strong>
   * <strong>strrchr()</strong>
   * <strong>stripos()</strong>
   * <strong>strpbrk()</strong>
   * <strong>preg_match()</strong>


id: strlen
type: function
doc:
<comment>Description:</comment>
  Get string length
  
  Returns the length of the given <strong>$string</strong>.

<comment>Param:</comment>
  <info>string</info>  <strong>$string</strong>  The <info>string</info> being measured for length.

<comment>Return:</comment>
  <info>int</info>  The length of the <strong>$string</strong> on success,  and <return>0</return> if the <strong>$string</strong> is empty.

<comment>See Also:</comment>
   * <strong>count()</strong>
   * <strong>grapheme_strlen()</strong>
   * <strong>iconv_strlen()</strong>
   * <strong>mb_strlen()</strong>


id: strnatcasecmp
type: function
doc:
<comment>Description:</comment>
  Case insensitive string comparisons using a "natural order" algorithm
  
  This function implements a comparison algorithm that orders alphanumeric strings in the way a
  human being would.  The behaviour of this function is similar to <strong>strnatcmp()</strong>, except that the
  comparison is not case sensitive.  For more information see: Martin Pool's Natural Order String
  Comparison page.

<comment>Param:</comment>
  <info>string</info>  <strong>$string1</strong>  The first string.
  <info>string</info>  <strong>$string2</strong>  The second string.

<comment>Return:</comment>
  <info>int</info>  Similar to other string comparison functions, this one returns \< 0 if <strong>$string1</strong> is less than
       <strong>$string2</strong> &gt; 0 if <strong>$string1</strong> is greater than <strong>$string2</strong>, and 0 if they are equal.

<comment>See Also:</comment>
   * <strong>preg_match()</strong>
   * <strong>strcmp()</strong>
   * <strong>strcasecmp()</strong>
   * <strong>substr()</strong>
   * <strong>stristr()</strong>
   * <strong>strncasecmp()</strong>
   * <strong>strncmp()</strong>
   * <strong>strstr()</strong>
   * <strong>setlocale()</strong>


id: strnatcmp
type: function
doc:
<comment>Description:</comment>
  String comparisons using a "natural order" algorithm
  
  This function implements a comparison algorithm that orders alphanumeric strings in the way a
  human being would, this is described as a "natural ordering".   Note that this comparison is case
  sensitive.

<comment>Param:</comment>
  <info>string</info>  <strong>$string1</strong>  The first string.
  <info>string</info>  <strong>$string2</strong>  The second string.

<comment>Return:</comment>
  <info>int</info>  Similar to other string comparison functions, this one returns \< 0 if <strong>$string1</strong> is less than
       <strong>$string2</strong>; &gt; 0 if <strong>$string1</strong> is greater than <strong>$string2</strong>, and 0 if they are equal.

<comment>See Also:</comment>
   * <strong>preg_match()</strong>
   * <strong>strcasecmp()</strong>
   * <strong>substr()</strong>
   * <strong>stristr()</strong>
   * <strong>strcmp()</strong>
   * <strong>strncmp()</strong>
   * <strong>strncasecmp()</strong>
   * <strong>strnatcasecmp()</strong>
   * <strong>strstr()</strong>
   * <strong>natsort()</strong>
   * <strong>natcasesort()</strong>


id: strncasecmp
type: function
doc:
<comment>Description:</comment>
  Binary safe case-insensitive string comparison of the first n characters
  
  This function is similar to <strong>strcasecmp()</strong>, with the difference that you can specify the (upper
  limit of the) number of characters from each string to be used in the comparison.

<comment>Param:</comment>
  <info>string</info>  <strong>$str1</strong>  The first string.
  <info>string</info>  <strong>$str2</strong>  The second string.
  <info>int   </info>  <strong>$len </strong>  The length of strings to be used in the comparison.

<comment>Return:</comment>
  <info>int</info>  Returns \< 0 if <strong>$str1</strong> is less than <strong>$str2</strong>; &gt; 0 if <strong>$str1</strong> is greater than <strong>$str2</strong>, and 0 if
       they are equal.

<comment>See Also:</comment>
   * <strong>strncmp()</strong>
   * <strong>preg_match()</strong>
   * <strong>substr_compare()</strong>
   * <strong>strcasecmp()</strong>
   * <strong>stristr()</strong>
   * <strong>substr()</strong>


id: strncmp
type: function
doc:
<comment>Description:</comment>
  Binary safe string comparison of the first n characters
  
  This function is similar to <strong>strcmp()</strong>, with the difference that you can specify the (upper limit of
  the) number of characters from each string to be used in the comparison.
  
  Note that this comparison is case sensitive.

<comment>Param:</comment>
  <info>string</info>  <strong>$str1</strong>  The first string.
  <info>string</info>  <strong>$str2</strong>  The second string.
  <info>int   </info>  <strong>$len </strong>  Number of characters to use in the comparison.

<comment>Return:</comment>
  <info>int</info>  Returns \< 0 if <strong>$str1</strong> is less than <strong>$str2</strong>; &gt; 0 if <strong>$str1</strong> is greater than <strong>$str2</strong>, and 0 if
       they are equal.

<comment>See Also:</comment>
   * <strong>strncasecmp()</strong>
   * <strong>preg_match()</strong>
   * <strong>substr_compare()</strong>
   * <strong>strcmp()</strong>
   * <strong>strstr()</strong>
   * <strong>substr()</strong>


id: strpbrk
type: function
doc:
<comment>Description:</comment>
  Search a string for any of a set of characters
  
  <strong>strpbrk()</strong> searches the <strong>$string</strong> string for a <strong>$characters</strong>.

<comment>Param:</comment>
  <info>string</info>  <strong>$string    </strong>  The string where <strong>$characters</strong> is looked for.
  <info>string</info>  <strong>$characters</strong>  This parameter is case sensitive.

<comment>Return:</comment>
  <info>stringfalse</info>  Returns a string starting from the character found, or <info>false</info> if it is not found.

<comment>See Also:</comment>
   * <strong>strpos()</strong>
   * <strong>strstr()</strong>
   * <strong>preg_match()</strong>


id: strpos
type: function
doc:
<comment>Description:</comment>
  Find the position of the first occurrence of a substring in a string
  
  Find the numeric position of the first occurrence of <strong>$needle</strong> in the <strong>$haystack</strong> string.

<comment>Param:</comment>
  <info>string</info>  <strong>$haystack</strong>  The string to search in.
  <info>string</info>  <strong>$needle  </strong>  Dacă <strong>$needle</strong> nu este un șir de caractere, el este transformat în întreg și
                     aplicat ca valoarea ordinală a caracterului. Acest comportament este învechit
                     începând cu PHP 7.3.0 și utilizarea lui este foarte nerecomandată. În
                     dependență de comportamentul dorit <strong>$needle</strong> trebuie transformat în mod explicit
                     în șir de caractere, sau trebuie efectuat un apel explicit către <strong>chr()</strong>.
  <info>int   </info>  <strong>$offset  </strong>  If specified, search will start this number of characters counted from the
                     beginning of the string. If the offset is negative, the search will start this
                     number of characters counted from the end of the string.

<comment>Return:</comment>
  <info>intfalse</info>  Returns the position of where the needle exists relative to the beginning of the
            <strong>$haystack</strong> string (independent of offset). Also note that string positions start at 0,
            and not 1.
            
            Returns <info>false</info> if the needle was not found.
            
            Această funcție poate întoarce valoarea Boolean <info>false</info>, dar poate de
            asemenea întoarce o valoare non-Boolean care evaluează în <info>false</info>. Vă rugăm să
            citiți secțiunea despre tipul Boolean
            pentru informații suplimentare. Utilizați
            operatorul === pentru a
            verifica valoarea întoarsă de această funcție.

<comment>See Also:</comment>
   * <strong>stripos()</strong>
   * <strong>str_contains()</strong>
   * <strong>str_ends_with()</strong>
   * <strong>str_starts_with()</strong>
   * <strong>strrpos()</strong>
   * <strong>strripos()</strong>
   * <strong>strstr()</strong>
   * <strong>strpbrk()</strong>
   * <strong>substr()</strong>
   * <strong>preg_match()</strong>


id: strptime
type: function
doc:
<comment>Description:</comment>
  Parse a time/date generated with strftime
      
  
  <strong>strptime()</strong> returns an array with the <strong>$timestamp</strong> parsed, or <info>false</info> on error.
  
  Month and weekday names and other language dependent strings respect the current locale set with
  <strong>setlocale()</strong> (<info>LC_TIME</info>).

<comment>Param:</comment>
  <info>string</info>  <strong>$timestamp</strong>  The string to parse (e.g. returned from <strong>strftime()</strong>).
  <info>string</info>  <strong>$format   </strong>  The format used in <strong>$timestamp</strong> (e.g. the same as used in <strong>strftime()</strong>). Note that
                      some of the format options available to <strong>strftime()</strong> may not have any effect
                      within <strong>strptime()</strong>; the exact subset that are supported will vary based on the
                      operating system and C library in use.
                      
                      For more information about the format options, read the <strong>strftime()</strong> page.

<comment>Return:</comment>
  <info>arrayfalse</info>  Returns an array sau <info>false</info> în cazul eșecului.
              
              The following parameters are returned in the arrayparametersDescription<return>"tm_sec"</return>Seconds
              after the minute (0-61)<return>"tm_min"</return>Minutes after the hour (0-59)<return>"tm_hour"</return>Hour since
              midnight (0-23)<return>"tm_mday"</return>Day of the month (1-31)<return>"tm_mon"</return>Months since January
              (0-11)<return>"tm_year"</return>Years since 1900<return>"tm_wday"</return>Days since Sunday (0-6)<return>"tm_yday"</return>Days since
              January 1 (0-365)<return>"unparsed"</return>the <strong>$timestamp</strong> part which was not recognized using the
              specified <strong>$format</strong>

<comment>See Also:</comment>
   * <strong>checkdate()</strong>
   * <strong>strftime()</strong>
   * <strong>date_parse_from_format()</strong>
   * <strong>DateTime::createFromFormat()</strong>


id: strrchr
type: function
doc:
<comment>Description:</comment>
  Find the last occurrence of a character in a string
  
  This function returns the portion of <strong>$haystack</strong> which starts at the last occurrence of <strong>$needle</strong> and
  goes until the end of <strong>$haystack</strong>.

<comment>Param:</comment>
  <info>string</info>  <strong>$haystack</strong>  The string to search in
  <info>string</info>  <strong>$needle  </strong>  If <strong>$needle</strong> contains more than one character, only the first is used. This
                     behavior is different from that of <strong>strstr()</strong>.
                     
                     Dacă <strong>$needle</strong> nu este un șir de caractere, el este transformat în întreg și
                     aplicat ca valoarea ordinală a caracterului. Acest comportament este învechit
                     începând cu PHP 7.3.0 și utilizarea lui este foarte nerecomandată. În
                     dependență de comportamentul dorit <strong>$needle</strong> trebuie transformat în mod explicit
                     în șir de caractere, sau trebuie efectuat un apel explicit către <strong>chr()</strong>.

<comment>Return:</comment>
  <info>stringfalse</info>  This function returns the portion of string, or <info>false</info> if <strong>$needle</strong> is not found.

<comment>See Also:</comment>
   * <strong>strstr()</strong>
   * <strong>strrpos()</strong>


id: strrev
type: function
doc:
<comment>Description:</comment>
  Reverse a string
  
  Returns <strong>$string</strong>, reversed.

<comment>Param:</comment>
  <info>string</info>  <strong>$string</strong>  The string to be reversed.

<comment>Return:</comment>
  <info>string</info>  Returns the reversed string.


id: strripos
type: function
doc:
<comment>Description:</comment>
  Find the position of the last occurrence of a case-insensitive substring in a string
  
  Find the numeric position of the last occurrence of <strong>$needle</strong> in the <strong>$haystack</strong> string.
  
  Unlike the <strong>strrpos()</strong>, <strong>strripos()</strong> is case-insensitive.

<comment>Param:</comment>
  <info>string</info>  <strong>$haystack</strong>  The string to search in.
  <info>string</info>  <strong>$needle  </strong>  Dacă <strong>$needle</strong> nu este un șir de caractere, el este transformat în întreg și
                     aplicat ca valoarea ordinală a caracterului. Acest comportament este învechit
                     începând cu PHP 7.3.0 și utilizarea lui este foarte nerecomandată. În
                     dependență de comportamentul dorit <strong>$needle</strong> trebuie transformat în mod explicit
                     în șir de caractere, sau trebuie efectuat un apel explicit către <strong>chr()</strong>.
  <info>int   </info>  <strong>$offset  </strong>  If zero or positive, the search is performed left to right skipping the first
                     <strong>$offset</strong> bytes of the <strong>$haystack</strong>.
                     
                     If negative, the search is performed right to left skipping the last <strong>$offset</strong>
                     bytes of the <strong>$haystack</strong> and searching for the first occurrence of <strong>$needle</strong>.  This
                     is effectively looking for the last occurrence of <strong>$needle</strong> before the last
                     <strong>$offset</strong> bytes.
                     
                     This is effectively looking for the last occurrence of <strong>$needle</strong> before the last
                     <strong>$offset</strong> bytes.

<comment>Return:</comment>
  <info>intfalse</info>  Returns the position where the needle exists relative to the beginnning of the <strong>$haystack</strong>
            string (independent of search direction or offset).  String positions start at 0, and
            not 1.
            
            String positions start at 0, and not 1.
            
            Returns <info>false</info> if the needle was not found.
            
            Această funcție poate întoarce valoarea Boolean <info>false</info>, dar poate de
            asemenea întoarce o valoare non-Boolean care evaluează în <info>false</info>. Vă rugăm să
            citiți secțiunea despre tipul Boolean
            pentru informații suplimentare. Utilizați
            operatorul === pentru a
            verifica valoarea întoarsă de această funcție.

<comment>See Also:</comment>
   * <strong>strpos()</strong>
   * <strong>stripos()</strong>
   * <strong>strrpos()</strong>
   * <strong>strrchr()</strong>
   * <strong>stristr()</strong>
   * <strong>substr()</strong>


id: strrpos
type: function
doc:
<comment>Description:</comment>
  Find the position of the last occurrence of a substring in a string
  
  Find the numeric position of the last occurrence of <strong>$needle</strong> in the <strong>$haystack</strong> string.

<comment>Param:</comment>
  <info>string</info>  <strong>$haystack</strong>  The string to search in.
  <info>string</info>  <strong>$needle  </strong>  Dacă <strong>$needle</strong> nu este un șir de caractere, el este transformat în întreg și
                     aplicat ca valoarea ordinală a caracterului. Acest comportament este învechit
                     începând cu PHP 7.3.0 și utilizarea lui este foarte nerecomandată. În
                     dependență de comportamentul dorit <strong>$needle</strong> trebuie transformat în mod explicit
                     în șir de caractere, sau trebuie efectuat un apel explicit către <strong>chr()</strong>.
  <info>int   </info>  <strong>$offset  </strong>  If zero or positive, the search is performed left to right skipping the first
                     <strong>$offset</strong> bytes of the <strong>$haystack</strong>.
                     
                     If negative, the search is performed right to left skipping the last <strong>$offset</strong>
                     bytes of the <strong>$haystack</strong> and searching for the first occurrence of <strong>$needle</strong>.  This
                     is effectively looking for the last occurrence of <strong>$needle</strong> before the last
                     <strong>$offset</strong> bytes.
                     
                     This is effectively looking for the last occurrence of <strong>$needle</strong> before the last
                     <strong>$offset</strong> bytes.

<comment>Return:</comment>
  <info>intfalse</info>  Returns the position where the needle exists relative to the beginning of the <strong>$haystack</strong>
            string (independent of search direction or offset).  String positions start at 0, and
            not 1.
            
            String positions start at 0, and not 1.
            
            Returns <info>false</info> if the needle was not found.
            
            Această funcție poate întoarce valoarea Boolean <info>false</info>, dar poate de
            asemenea întoarce o valoare non-Boolean care evaluează în <info>false</info>. Vă rugăm să
            citiți secțiunea despre tipul Boolean
            pentru informații suplimentare. Utilizați
            operatorul === pentru a
            verifica valoarea întoarsă de această funcție.

<comment>See Also:</comment>
   * <strong>strpos()</strong>
   * <strong>stripos()</strong>
   * <strong>strripos()</strong>
   * <strong>strrchr()</strong>
   * <strong>substr()</strong>


id: strspn
type: function
doc:
<comment>Description:</comment>
  Finds the length of the initial segment of a string consisting
     entirely of characters contained within a given mask
    
  
  Finds the length of the initial segment of <strong>$string</strong> that contains only characters from <strong>$characters</strong>.
  
  If <strong>$offset</strong> and <strong>$length</strong> are omitted, then all of <strong>$string</strong> will be examined. If they are included,
  then the effect will be the same as calling <return>strspn(substr($subject, $start, $length), $mask)</return> (see
  for more information).
  
  The line of code: 
  ]]> will assign <return>2</return> to $var, because the string "42" is the initial segment of <strong>$string</strong> that consists
  only of characters contained within "1234567890".

<comment>Param:</comment>
  <info>string </info>  <strong>$string    </strong>  The string to examine.
  <info>string </info>  <strong>$characters</strong>  The list of allowable characters.
  <info>int    </info>  <strong>$offset    </strong>  The position in <strong>$string</strong> to start searching.
                        
                        If <strong>$offset</strong> is given and is non-negative, then <strong>strspn()</strong> will begin examining
                        <strong>$string</strong> at the <strong>$offset</strong>'th position. For instance, in the string '<return>abcdef</return>',
                        the character at position <return>0</return> is '<return>a</return>', the character at position <return>2</return> is '<return>c</return>', and
                        so forth.
                        
                        If <strong>$offset</strong> is given and is negative, then <strong>strspn()</strong> will begin examining
                        <strong>$string</strong> at the <strong>$offset</strong>'th position from the end of <strong>$string</strong>.
  <info>intnull</info>  <strong>$length    </strong>  The length of the segment from <strong>$string</strong> to examine.
                        
                        If <strong>$length</strong> is given and is non-negative, then <strong>$string</strong> will be examined for
                        <strong>$length</strong> characters after the starting position.
                        
                        If <strong>$length</strong> is given and is negative, then <strong>$string</strong> will be examined from the
                        starting position up to <strong>$length</strong> characters from the end of <strong>$string</strong>.

<comment>Return:</comment>
  <info>int</info>  Returns the length of the initial segment of <strong>$string</strong> which consists entirely of characters in
       <strong>$characters</strong>.
       
       When a <strong>$offset</strong> parameter is set, the returned length is counted starting from this position,
       not from the beginning of <strong>$string</strong>.

<comment>See Also:</comment>
   * <strong>strcspn()</strong>


id: strstr
type: function
doc:
<comment>Description:</comment>
  Find the first occurrence of a string
  
  Returns part of <strong>$haystack</strong> string starting from and including the first occurrence of <strong>$needle</strong> to
  the end of <strong>$haystack</strong>.
  
  This function is case-sensitive. For case-insensitive searches, use <strong>stristr()</strong>.
  
  If you only want to determine if a particular <strong>$needle</strong> occurs within <strong>$haystack</strong>, use the faster and
  less memory intensive function <strong>strpos()</strong> instead.

<comment>Param:</comment>
  <info>string</info>  <strong>$haystack     </strong>  The input string.
  <info>string</info>  <strong>$needle       </strong>  Dacă <strong>$needle</strong> nu este un șir de caractere, el este transformat în întreg și
                          aplicat ca valoarea ordinală a caracterului. Acest comportament este
                          învechit începând cu PHP 7.3.0 și utilizarea lui este foarte
                          nerecomandată. În dependență de comportamentul dorit <strong>$needle</strong> trebuie
                          transformat în mod explicit în șir de caractere, sau trebuie efectuat un
                          apel explicit către <strong>chr()</strong>.
  <info>bool  </info>  <strong>$before_needle</strong>  If <info>true</info>, <strong>strstr()</strong> returns the part of the <strong>$haystack</strong> before the first
                          occurrence of the <strong>$needle</strong> (excluding the needle).

<comment>Return:</comment>
  <info>stringfalse</info>  Returns the portion of string, or <info>false</info> if <strong>$needle</strong> is not found.

<comment>See Also:</comment>
   * <strong>stristr()</strong>
   * <strong>strrchr()</strong>
   * <strong>strpos()</strong>
   * <strong>strpbrk()</strong>
   * <strong>preg_match()</strong>


id: strtok
type: function
doc:
<comment>Description:</comment>
  Tokenize string
  
  <strong>strtok()</strong> splits a string (<strong>$str</strong>) into smaller strings (tokens), with each token being delimited by
  any character from <strong>$token</strong>. That is, if you have a string like "This is an example string" you
  could tokenize this string into its individual words by using the space character as the token.
  
  Note that only the first call to strtok uses the string argument. Every subsequent call to strtok
  only needs the token to use, as it keeps track of where it is in the current string.  To start
  over, or to tokenize a new string you simply call strtok with the string argument again to
  initialize it.  Note that you may put multiple tokens in the token parameter.  The string will be
  tokenized when any one of the characters in the argument is found.

<comment>Param:</comment>
  <info>string</info>  <strong>$str  </strong>  The <info>string</info> being split up into smaller strings (tokens).
  <info>string</info>  <strong>$token</strong>  The delimiter used when splitting up <strong>$str</strong>.

<comment>Return:</comment>
  <info>string</info>  A <info>string</info> token.

<comment>See Also:</comment>
   * <strong>split()</strong>
   * <strong>explode()</strong>


id: strtolower
type: function
doc:
<comment>Description:</comment>
  Make a string lowercase
  
  Returns <strong>$string</strong> with all alphabetic characters converted to lowercase.
  
  Note that 'alphabetic' is determined by the current locale. This means that e.g. in the default
  "C" locale, characters such as umlaut-A (Ä) will not be converted.

<comment>Param:</comment>
  <info>string</info>  <strong>$string</strong>  The input string.

<comment>Return:</comment>
  <info>string</info>  Returns the lowercased string.

<comment>See Also:</comment>
   * <strong>strtoupper()</strong>
   * <strong>ucfirst()</strong>
   * <strong>ucwords()</strong>
   * <strong>mb_strtolower()</strong>


id: strtotime
type: function
doc:
<comment>Description:</comment>
  Translează aproape orice descriere textuală în limba engleză a datei și orei într-un timestamp
  Unix
  
  Funcția așteaptă un șir de caractere conținând un format de dată engleză și încearcă să transforme
  acest format într-un timestamp Unix (numărul de secunde de la 1 Ianuarie 1970 00:00:00 UTC), în
  raport cu timestamp-ul dat în parametrul <strong>$now</strong>, sau cu ora curentă dacă parametrul <strong>$now</strong> nu este
  furnizat.
  
  Timestamp-ul Unix pe care îl întoarce această funcție nu conține informații despre fusurile orare.
  Pentru a efectua calcule cu informații dată/oră trebuie utilizate obiecte <class>DateTimeImmutable</class> mai
  capabile.
  
  Fiecare parametru al acestei funcții utilizează fusul orar implicit, afară de cazul când fusul
  orar este specificat în acel parametru. Fiți atenți să nu utilizați diferite fusuri orare în
  fiecare parametru, afară de cazul când anume așa se intenționează. Vedeți
  <strong>date_default_timezone_get()</strong> pentru diferite metode de a defini fusul orar implicit.

<comment>Param:</comment>
  <info>string</info>  <strong>$datetime</strong>  Un șir dată/oră. Formatele valide sunt explicate în
                     
                     Formatele datelor și orelor.
  <info>int   </info>  <strong>$now     </strong>  Timestamp-ul care este utilizat ca bază pentru calcularea datelor relative.

<comment>Return:</comment>
  <info>int</info>  Întoarce un timestamp în caz de succes, <info>false</info> în caz contrar. Înainte de PHP 5.1.0, această
       funcție întorcea <return>-1</return> în caz de eșec.

<comment>See Also:</comment>
   * Formatele datei și orei
   * DateTime::createFromFormat
   * <strong>checkdate()</strong>
   * <strong>strptime()</strong>


id: strtoupper
type: function
doc:
<comment>Description:</comment>
  Make a string uppercase
  
  Returns <strong>$string</strong> with all alphabetic characters converted to uppercase.
  
  Note that 'alphabetic' is determined by the current locale. For instance, in the default "C"
  locale characters such as umlaut-a (ä) will not be converted.

<comment>Param:</comment>
  <info>string</info>  <strong>$string</strong>  The input string.

<comment>Return:</comment>
  <info>string</info>  Returns the uppercased string.

<comment>See Also:</comment>
   * <strong>strtolower()</strong>
   * <strong>ucfirst()</strong>
   * <strong>ucwords()</strong>
   * <strong>mb_strtoupper()</strong>


id: strtr
type: function
doc:
<comment>Description:</comment>
  Translate characters or replace substrings
  
  If given three arguments, this function returns a copy of <strong>$str</strong> where all occurrences of each
  (single-byte) character in <strong>$from</strong> have been translated to the corresponding character in <strong>$to</strong>, i.e.,
  every occurrence of <return>$from[$n]</return> has been replaced with <return>$to[$n]</return>, where <return>$n</return> is a valid offset in both
  arguments.
  
  If <strong>$from</strong> and <strong>$to</strong> have different lengths, the extra characters in the longer of the two are
  ignored. The length of <strong>$str</strong> will be the same as the return value's.
  
  If given two arguments, the second should be an <info>array</info> in the form <return>array('from' =&gt; 'to', ...)</return>.
  The return value is a <info>string</info> where all the occurrences of the array keys have been replaced by the
  corresponding values. The longest keys will be tried first. Once a substring has been replaced,
  its new value will not be searched again.
  
  In this case, the keys and the values may have any length, provided that there is no empty key;
  additionally, the length of the return value may differ from that of <strong>$str</strong>. However, this function
  will be the most efficient when all the keys have the same size.

<comment>Param:</comment>
  <info>string</info>  <strong>$str          </strong>  The <info>string</info> being translated.
  <info>string</info>  <strong>$from         </strong>  The <info>string</info> being translated to <strong>$to</strong>.
  <info>string</info>  <strong>$to           </strong>  The <info>string</info> replacing <strong>$from</strong>.
  <info>array </info>  <strong>$replace_pairs</strong>  The <strong>$replace_pairs</strong> parameter may be used instead of  <strong>$to</strong> and <strong>$from</strong>, in
                          which case it's an <info>array</info> in the form <return>array('from' =&gt; 'to', ...)</return>.

<comment>Return:</comment>
  <info>string</info>  Returns the translated <info>string</info>.
          
          If <strong>$replace_pairs</strong> contains a key which is an empty <info>string</info> (<return>""</return>), <info>false</info> will be returned. If
          the <strong>$str</strong> is not a scalar then it is not typecasted into a string, instead a warning is
          raised and  <info>null</info> is returned.

<comment>See Also:</comment>
   * <strong>str_replace()</strong>
   * <strong>preg_replace()</strong>


id: strval
type: function
doc:
<comment>Description:</comment>
  Obține valoarea string a unei variabile
  
  Obține valoarea string a unei variabile. Accesați documentația tipului <info>string</info> pentru a obține mai
  multe informații despre convertirea în string.
  
  Această funcție nu formatează în vre-un careva mod valoarea întoarsă. Dacă căutați un mod de a
  formata o valoare numerică ca string, vedeți <strong>sprintf()</strong> sau <strong>number_format()</strong>.

<comment>Param:</comment>
  <info>mixed</info>  <strong>$var</strong>  Variabila ce este convertită în <info>string</info>.
               
               <strong>$var</strong> poate fi de orice tip scalar sau un obiect ce implementează metoda __toString().
               Nu puteți utiliza <strong>strval()</strong> cu tablouri sau cu obiecte ce nu implementează metoda
               __toString().

<comment>Return:</comment>
  <info>string</info>  Valoarea <info>string</info> a <strong>$var</strong>.

<comment>See Also:</comment>
   * <strong>boolval()</strong>
   * <strong>floatval()</strong>
   * <strong>intval()</strong>
   * <strong>settype()</strong>
   * <strong>sprintf()</strong>
   * <strong>number_format()</strong>
   * Manipularea tipurilor
   * __toString()


id: substr
type: function
doc:
<comment>Description:</comment>
  Return part of a string
  
  Returns the portion of <strong>$string</strong> specified by the <strong>$offset</strong> and <strong>$length</strong> parameters.

<comment>Param:</comment>
  <info>string </info>  <strong>$string</strong>  The input string.
  <info>int    </info>  <strong>$offset</strong>  If <strong>$offset</strong> is non-negative, the returned string will start at the <strong>$offset</strong>'th
                    position in <strong>$string</strong>, counting from zero. For instance, in the string '<return>abcdef</return>',
                    the character at position <return>0</return> is '<return>a</return>', the character at position <return>2</return> is '<return>c</return>', and so
                    forth.
                    
                    If <strong>$offset</strong> is negative, the returned string will start at the <strong>$offset</strong>'th
                    character from the end of <strong>$string</strong>.
                    
                    If <strong>$string</strong> is less than <strong>$offset</strong> characters long, <info>false</info> will be returned.
                    
                    Using a negative <strong>$offset</strong>
                    ]]>
  <info>intnull</info>  <strong>$length</strong>  If <strong>$length</strong> is given and is positive, the string returned will contain at most
                    <strong>$length</strong> characters beginning from <strong>$offset</strong> (depending on the length of <strong>$string</strong>).
                    
                    If <strong>$length</strong> is given and is negative, then that many characters will be omitted
                    from the end of <strong>$string</strong> (after the start position has been calculated when a
                    <strong>$offset</strong> is negative).  If <strong>$offset</strong> denotes the position of this truncation or
                    beyond, <info>false</info> will be returned.
                    
                    If <strong>$length</strong> is given and is <return>0</return>, <info>false</info> or <info>null</info>, an empty string will be returned.
                    
                    If <strong>$length</strong> is omitted, the substring starting from <strong>$offset</strong> until the end of the
                    string will be returned.

<comment>Return:</comment>
  <info>string</info>  Returns the extracted part of <strong>$string</strong>;  sau <info>false</info> în cazul eșecului, or an empty string.

<comment>See Also:</comment>
   * <strong>strrchr()</strong>
   * <strong>substr_replace()</strong>
   * <strong>preg_match()</strong>
   * <strong>trim()</strong>
   * <strong>mb_substr()</strong>
   * <strong>wordwrap()</strong>
   * String access and modification by character


id: substr_compare
type: function
doc:
<comment>Description:</comment>
  Binary safe comparison of two strings from an offset, up to length characters
  
  <strong>substr_compare()</strong> compares <strong>$haystack</strong> from position <strong>$offset</strong> with <strong>$needle</strong> up to <strong>$length</strong> characters.

<comment>Param:</comment>
  <info>string </info>  <strong>$haystack        </strong>  The main string being compared.
  <info>string </info>  <strong>$needle          </strong>  The secondary string being compared.
  <info>int    </info>  <strong>$offset          </strong>  The start position for the comparison. If negative, it starts counting
                              from the end of the string.
  <info>intnull</info>  <strong>$length          </strong>  The length of the comparison. The default value is the largest of the
                              length of the <strong>$needle</strong> compared to the length of <strong>$haystack</strong> minus the
                              <strong>$offset</strong>.
  <info>bool   </info>  <strong>$case_insensitive</strong>  If <strong>$case_insensitive</strong> is <info>true</info>, comparison is case insensitive.

<comment>Return:</comment>
  <info>int</info>  Returns \< 0 if <strong>$haystack</strong> from position <strong>$offset</strong> is less than <strong>$needle</strong>, &gt; 0 if it is greater
       than <strong>$needle</strong>, and 0 if they are equal. If <strong>$offset</strong> is equal to (prior to PHP 7.2.18, 7.3.5) or
       greater than the length of <strong>$haystack</strong>, or the <strong>$length</strong> is set and is less than 0,
       <strong>substr_compare()</strong> prints a warning and returns <info>false</info>.

<comment>See Also:</comment>
   * <strong>strncmp()</strong>


id: substr_count
type: function
doc:
<comment>Description:</comment>
  Count the number of substring occurrences
  
  <strong>substr_count()</strong> returns the number of times the <strong>$needle</strong> substring occurs in the <strong>$haystack</strong> string.
  Please note that <strong>$needle</strong> is case sensitive.
  
  This function doesn't count overlapped substrings. See the example below!

<comment>Param:</comment>
  <info>string </info>  <strong>$haystack</strong>  The string to search in
  <info>string </info>  <strong>$needle  </strong>  The substring to search for
  <info>int    </info>  <strong>$offset  </strong>  The offset where to start counting. If the offset is negative, counting starts
                      from the end of the string.
  <info>intnull</info>  <strong>$length  </strong>  The maximum length after the specified offset to search for the substring. It
                      outputs a warning if the offset plus the length is greater than the <strong>$haystack</strong>
                      length. A negative length counts from the end of <strong>$haystack</strong>.

<comment>Return:</comment>
  <info>int</info>  This function returns an <info>int</info>.

<comment>See Also:</comment>
   * <strong>count_chars()</strong>
   * <strong>strpos()</strong>
   * <strong>substr()</strong>
   * <strong>strstr()</strong>


id: substr_replace
type: function
doc:
<comment>Description:</comment>
  Replace text within a portion of a string
  
  <strong>substr_replace()</strong> replaces a copy of <strong>$string</strong> delimited by the <strong>$offset</strong> and (optionally) <strong>$length</strong>
  parameters with the string given in <strong>$replace</strong>.

<comment>Param:</comment>
  <info>arraystring </info>  <strong>$string </strong>  The input string.
                          
                          An <info>array</info> of <info>string</info>s can be provided, in which case the replacements will
                          occur on each string in turn. In this case, the <strong>$replace</strong>, <strong>$offset</strong> and
                          <strong>$length</strong> parameters may be provided either as scalar values to be applied
                          to each input string in turn, or as <info>array</info>s, in which case the
                          corresponding array element will be used for each input string.
  <info>arraystring </info>  <strong>$replace</strong>  The replacement string.
  <info>arrayint    </info>  <strong>$offset </strong>  If <strong>$offset</strong> is non-negative, the replacing will begin at the <strong>$offset</strong>'th
                          offset into <strong>$string</strong>.
                          
                          If <strong>$offset</strong> is negative, the replacing will begin at the <strong>$offset</strong>'th
                          character from the end of <strong>$string</strong>.
  <info>arrayintnull</info>  <strong>$length </strong>  If given and is positive, it represents the length of the portion of
                          <strong>$string</strong> which is to be replaced. If it is negative, it represents the
                          number of characters from the end of <strong>$string</strong> at which to stop replacing.
                          If it is not given, then it will default to strlen( <strong>$string</strong> ); i.e. end
                          the replacing at the end of <strong>$string</strong>. Of course, if <strong>$length</strong> is zero then
                          this function will have the effect of inserting <strong>$replace</strong> into <strong>$string</strong> at
                          the given <strong>$offset</strong> offset.

<comment>Return:</comment>
  <info>stringarray</info>  The result string is returned. If <strong>$string</strong> is an array then array is returned.

<comment>See Also:</comment>
   * <strong>str_replace()</strong>
   * <strong>substr()</strong>
   * String access and modification by character


id: svn_add
type: function
doc:
<comment>Description:</comment>
  Schedules the addition of an item in a working directory
  
  Adds the file, directory or symbolic link at <strong>$path</strong> to the working directory. The item will be
  added to the repository the next time you call <strong>svn_commit()</strong> on the working copy.

<comment>Param:</comment>
  <info>string</info>  <strong>$path     </strong>  Path of item to add.
                      
                      Căile relative vor fi rezolvate ca și cum directorul curent este cel
                      ce conține binarul PHP. Pentru a utiliza directorul de lucru al scriptului
                      apelant, utilizați <strong>realpath()</strong> sau dirname(__FILE__).
  <info>bool  </info>  <strong>$recursive</strong>  If item is directory, whether or not to recursively add all of its contents.
                      Default is <info>true</info>
  <info>bool  </info>  <strong>$force    </strong>  If true, Subversion will recurse into already versioned directories in order
                      to add unversioned files that may be hiding in those directories. Default is
                      <info>false</info>

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * SVN documentation on svn add


id: svn_auth_get_parameter
type: function
doc:
<comment>Description:</comment>
  Retrieves authentication parameter
  
  Retrieves authentication parameter at <strong>$key</strong>. For a list of valid keys and their meanings, consult
  the authentication constants list.

<comment>Param:</comment>
  <info>string</info>  <strong>$key</strong>  String key name. Use the authentication constants defined by this extension to
                specify a key.

<comment>Return:</comment>
  <info>string</info>  Returns the string value of the parameter at <strong>$key</strong>; returns <info>null</info> if parameter does not
          exist.

<comment>See Also:</comment>
   * <strong>svn_auth_set_parameter()</strong>
   * Authentication constants


id: svn_auth_set_parameter
type: function
doc:
<comment>Description:</comment>
  Sets an authentication parameter
  
  Sets authentication parameter at <strong>$key</strong> to <strong>$value</strong>. For a list of valid keys and their meanings,
  consult the authentication constants list.

<comment>Param:</comment>
  <info>string</info>  <strong>$key  </strong>  String key name. Use the authentication constants defined by this extension to
                  specify a key.
  <info>string</info>  <strong>$value</strong>  String value to set to parameter at key. Format of value varies with the
                  parameter.

<comment>Return:</comment>
  <info>void</info>  Nu este întoarsă nici o valoare.

<comment>See Also:</comment>
   * <strong>svn_auth_get_parameter()</strong>
   * Authentication constants


id: svn_blame
type: function
doc:
<comment>Description:</comment>
  Get the SVN blame for a file
  
  Get the SVN blame of a file from a repository URL.

<comment>Param:</comment>
  <info>string</info>  <strong>$repository_url</strong>  The repository URL.
  <info>int   </info>  <strong>$revision_no   </strong>  The revision number.

<comment>Return:</comment>
  <info>array</info>  An <info>array</info> of SVN blame information separated by line which includes the revision number,
         line number, line of code, author, and date.

<comment>See Also:</comment>
   * <strong>svn_diff()</strong>
   * <strong>svn_logs()</strong>
   * <strong>svn_status()</strong>


id: svn_cat
type: function
doc:
<comment>Description:</comment>
  Returns the contents of a file in a repository
  
  Returns the contents of the URL <strong>$repos_url</strong> to a file in the repository, optionally at revision
  number <strong>$revision_no</strong>.

<comment>Param:</comment>
  <info>string</info>  <strong>$repos_url  </strong>  String URL path to item in a repository.
  <info>int   </info>  <strong>$revision_no</strong>  Integer revision number of item to retrieve, default is the HEAD revision.

<comment>Return:</comment>
  <info>string</info>  Returns the string contents of the item from the repository on success, and <info>false</info> on
          failure.

<comment>See Also:</comment>
   * <strong>svn_list()</strong>
   * SVN documentation on svn cat


id: svn_checkout
type: function
doc:
<comment>Description:</comment>
  Checks out a working copy from the repository
  
  Checks out a working copy from the repository at <strong>$repos</strong> to <strong>$targetpath</strong> at revision <strong>$revision</strong>.

<comment>Param:</comment>
  <info>string</info>  <strong>$repos     </strong>  String URL path to directory in repository to check out.
  <info>string</info>  <strong>$targetpath</strong>  String local path to directory to check out in to
                       
                       Căile relative vor fi rezolvate ca și cum directorul curent este cel
                       ce conține binarul PHP. Pentru a utiliza directorul de lucru al scriptului
                       apelant, utilizați <strong>realpath()</strong> sau dirname(__FILE__).
  <info>int   </info>  <strong>$revision  </strong>  Integer revision number of repository to check out. Default is HEAD, the most
                       recent revision.
  <info>int   </info>  <strong>$flags     </strong>  Any combination of <info>SVN_NON_RECURSIVE</info> and <info>SVN_IGNORE_EXTERNALS</info>.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>svn_add()</strong>
   * <strong>svn_commit()</strong>
   * <strong>svn_status()</strong>
   * <strong>svn_update()</strong>
   * SVN documentation on svn checkout


id: svn_cleanup
type: function
doc:
<comment>Description:</comment>
  Recursively cleanup a working copy directory, finishing incomplete operations and removing locks
  
  Recursively cleanup working copy directory <strong>$workingdir</strong>, finishing any incomplete operations and
  removing working copy locks. Use when a working copy is in limbo and needs to be usable again.

<comment>Param:</comment>
  <info>string</info>  <strong>$workingdir</strong>  String path to local working directory to cleanup
                       
                       Căile relative vor fi rezolvate ca și cum directorul curent este cel
                       ce conține binarul PHP. Pentru a utiliza directorul de lucru al scriptului
                       apelant, utilizați <strong>realpath()</strong> sau dirname(__FILE__).

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>update()</strong>
   * SVN documentation on svn cleanup


id: svn_client_version
type: function
doc:
<comment>Description:</comment>
  Returns the version of the SVN client libraries
  
  Returns the version of the SVN client libraries

<comment>Return:</comment>
  <info>string</info>  String version number, usually in form of x.y.z.


id: svn_commit
type: function
doc:
<comment>Description:</comment>
  Sends changes from the local working copy to the repository
  
  Commits changes made in the local working copy files enumerated in the <strong>$targets</strong> array to the
  repository, with the log message <strong>$log</strong>. Directories in the <strong>$targets</strong> array will be recursively
  committed unless <strong>$recursive</strong> is set to <info>false</info>.
  
  This function does not have any parameters for specifying authentication, so a username and
  password must be set using <strong>svn_auth_set_parameter()</strong>

<comment>Param:</comment>
  <info>string</info>  <strong>$log      </strong>  String log text to commit
  <info>array </info>  <strong>$targets  </strong>  Array of local paths of files to be committed
                      
                      This parameter must be an array, a string for a single target is not
                      acceptable.
                      
                      Căile relative vor fi rezolvate ca și cum directorul curent este cel
                      ce conține binarul PHP. Pentru a utiliza directorul de lucru al scriptului
                      apelant, utilizați <strong>realpath()</strong> sau dirname(__FILE__).
  <info>bool  </info>  <strong>$recursive</strong>  Boolean flag to disable recursive committing of directories in the <strong>$targets</strong>
                      array. Default is <info>true</info>.

<comment>Return:</comment>
  <info>array</info>  Returns array in form of:
         
         Returns <info>false</info> on failure.

<comment>See Also:</comment>
   * <strong>svn_auth_set_parameter()</strong>
   * SVN documentation on svn commit


id: svn_delete
type: function
doc:
<comment>Description:</comment>
  Delete items from a working copy or repository
  
  Deletes the file, directory or symbolic link at <strong>$path</strong> from the working directory. The item will be
  deleted from the repository the next time you call <strong>svn_commit()</strong> on the working copy.

<comment>Param:</comment>
  <info>string</info>  <strong>$path </strong>  Path of item to delete.
                  
                  Căile relative vor fi rezolvate ca și cum directorul curent este cel
                  ce conține binarul PHP. Pentru a utiliza directorul de lucru al scriptului
                  apelant, utilizați <strong>realpath()</strong> sau dirname(__FILE__).
  <info>bool  </info>  <strong>$force</strong>  If <info>true</info>, the file will be deleted even if it has local modifications. Otherwise,
                  local modifications will result in a failure. Default is <info>false</info>

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * SVN documentation on svn
    delete


id: svn_diff
type: function
doc:
<comment>Description:</comment>
  Recursively diffs two paths
  
  Recursively diffs two paths, <strong>$path1</strong> and <strong>$path2</strong>.
  
  This is not a general-purpose diff utility. Only local files that are versioned may be diffed:
  other files will fail.

<comment>Param:</comment>
  <info>string</info>  <strong>$path1</strong>  First path to diff. This can be a URL to a file/directory in an SVN repository or
                  a local file/directory path.
                  
                  Căile relative vor fi rezolvate ca și cum directorul curent este cel
                  ce conține binarul PHP. Pentru a utiliza directorul de lucru al scriptului
                  apelant, utilizați <strong>realpath()</strong> sau dirname(__FILE__).
                  
                  If a local file path has only backslashes and no forward slashes, this extension
                  will fail to find the path. Always replace all backslashes with forward slashes
                  when using this function.
  <info>int   </info>  <strong>$rev1 </strong>  First path's revision number. Use <info>SVN_REVISION_HEAD</info> to specify the most recent
                  revision.
  <info>string</info>  <strong>$path2</strong>  Second path to diff. See <strong>$path1</strong> for description.
  <info>int   </info>  <strong>$rev2 </strong>  Second path's revision number. See <strong>$rev1</strong> for description.

<comment>Return:</comment>
  <info>array</info>  Returns an array-list consisting of two streams: the first is the diff output and the
         second contains error stream output. The streams can be read using <strong>fread()</strong>. Returns <info>false</info>
         or <info>null</info> on error.
         
         The diff output will, by default, be in the form of Subversion's custom unified diff
         format, but an external diff engine may be used depending on Subversion's configuration.

<comment>See Also:</comment>
   * SVN documentation on svn diff


id: svn_export
type: function
doc:
<comment>Description:</comment>
  Export the contents of a SVN directory
  
  Export the contents of either a working copy or repository into a 'clean' directory.

<comment>Param:</comment>
  <info>string</info>  <strong>$frompath    </strong>  The path to the current repository.
  <info>string</info>  <strong>$topath      </strong>  The path to the new repository.
  <info>bool  </info>  <strong>$working_copy</strong>  If <info>true</info>, it will export uncommitted files from the working copy.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>svn_import()</strong>


id: svn_fs_abort_txn
type: function
doc:
<comment>Description:</comment>
  Abort a transaction, returns true if everything is okay, false otherwise
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Abort a transaction, returns true if everything is okay, false otherwise

<comment>Return:</comment>
  <info>bool</info>  


id: svn_fs_apply_text
type: function
doc:
<comment>Description:</comment>
  Creates and returns a stream that will be used to replace
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Creates and returns a stream that will be used to replace

<comment>Return:</comment>
  <info>resource</info>  


id: svn_fs_begin_txn2
type: function
doc:
<comment>Description:</comment>
  Create a new transaction
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Create a new transaction

<comment>Return:</comment>
  <info>resource</info>  


id: svn_fs_change_node_prop
type: function
doc:
<comment>Description:</comment>
  Return true if everything is ok, false otherwise
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Return true if everything is ok, false otherwise

<comment>Return:</comment>
  <info>bool</info>  


id: svn_fs_check_path
type: function
doc:
<comment>Description:</comment>
  Determines what kind of item lives at path in a given repository fsroot
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Determines what kind of item lives at path in a given repository fsroot

<comment>Return:</comment>
  <info>int</info>  


id: svn_fs_contents_changed
type: function
doc:
<comment>Description:</comment>
  Return true if content is different, false otherwise
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Return true if content is different, false otherwise

<comment>Return:</comment>
  <info>bool</info>  


id: svn_fs_copy
type: function
doc:
<comment>Description:</comment>
  Copies a file or a directory, returns true if all is ok, false otherwise
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Copies a file or a directory, returns true if all is ok, false otherwise

<comment>Return:</comment>
  <info>bool</info>  


id: svn_fs_delete
type: function
doc:
<comment>Description:</comment>
  Deletes a file or a directory, return true if all is ok, false otherwise
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Deletes a file or a directory, return true if all is ok, false otherwise

<comment>Return:</comment>
  <info>bool</info>  


id: svn_fs_dir_entries
type: function
doc:
<comment>Description:</comment>
  Enumerates the directory entries under path; returns a hash of dir names to file type
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Enumerates the directory entries under path; returns a hash of dir names to file type

<comment>Return:</comment>
  <info>array</info>  


id: svn_fs_file_contents
type: function
doc:
<comment>Description:</comment>
  Returns a stream to access the contents of a file from a given version of the fs
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Returns a stream to access the contents of a file from a given version of the fs

<comment>Return:</comment>
  <info>resource</info>  


id: svn_fs_file_length
type: function
doc:
<comment>Description:</comment>
  Returns the length of a file from a given version of the fs
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Returns the length of a file from a given version of the fs

<comment>Return:</comment>
  <info>int</info>  


id: svn_fs_is_dir
type: function
doc:
<comment>Description:</comment>
  Return true if the path points to a directory, false otherwise
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Return true if the path points to a directory, false otherwise

<comment>Return:</comment>
  <info>bool</info>  


id: svn_fs_is_file
type: function
doc:
<comment>Description:</comment>
  Return true if the path points to a file, false otherwise
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Return true if the path points to a file, false otherwise

<comment>Return:</comment>
  <info>bool</info>  


id: svn_fs_make_dir
type: function
doc:
<comment>Description:</comment>
  Creates a new empty directory, returns true if all is ok, false otherwise
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Creates a new empty directory, returns true if all is ok, false otherwise

<comment>Return:</comment>
  <info>bool</info>  


id: svn_fs_make_file
type: function
doc:
<comment>Description:</comment>
  Creates a new empty file, returns true if all is ok, false otherwise
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Creates a new empty file, returns true if all is ok, false otherwise

<comment>Return:</comment>
  <info>bool</info>  


id: svn_fs_node_created_rev
type: function
doc:
<comment>Description:</comment>
  Returns the revision in which path under fsroot was created
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Returns the revision in which path under fsroot was created

<comment>Return:</comment>
  <info>int</info>  


id: svn_fs_node_prop
type: function
doc:
<comment>Description:</comment>
  Returns the value of a property for a node
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Returns the value of a property for a node

<comment>Return:</comment>
  <info>string</info>  


id: svn_fs_props_changed
type: function
doc:
<comment>Description:</comment>
  Return true if props are different, false otherwise
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Return true if props are different, false otherwise

<comment>Return:</comment>
  <info>bool</info>  


id: svn_fs_revision_prop
type: function
doc:
<comment>Description:</comment>
  Fetches the value of a named property
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Fetches the value of a named property

<comment>Return:</comment>
  <info>string</info>  


id: svn_fs_revision_root
type: function
doc:
<comment>Description:</comment>
  Get a handle on a specific version of the repository root
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Get a handle on a specific version of the repository root

<comment>Return:</comment>
  <info>resource</info>  


id: svn_fs_txn_root
type: function
doc:
<comment>Description:</comment>
  Creates and returns a transaction root
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Creates and returns a transaction root

<comment>Return:</comment>
  <info>resource</info>  


id: svn_fs_youngest_rev
type: function
doc:
<comment>Description:</comment>
  Returns the number of the youngest revision in the filesystem
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Returns the number of the youngest revision in the filesystem

<comment>Return:</comment>
  <info>int</info>  


id: svn_import
type: function
doc:
<comment>Description:</comment>
  Imports an unversioned path into a repository
  
  Commits unversioned <strong>$path</strong> into repository at <strong>$url</strong>. If <strong>$path</strong> is a directory and <strong>$nonrecursive</strong> is
  <info>false</info>,  the directory will be imported recursively.

<comment>Param:</comment>
  <info>string</info>  <strong>$path        </strong>  Path of file or directory to import.
                         
                         Căile relative vor fi rezolvate ca și cum directorul curent este cel
                         ce conține binarul PHP. Pentru a utiliza directorul de lucru al scriptului
                         apelant, utilizați <strong>realpath()</strong> sau dirname(__FILE__).
  <info>string</info>  <strong>$url         </strong>  Repository URL to import into.
  <info>bool  </info>  <strong>$nonrecursive</strong>  Whether or not to refrain from recursively processing directories.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>svn_add()</strong>
   * SVN documentation for svn import


id: svn_log
type: function
doc:
<comment>Description:</comment>
  Returns the commit log messages of a repository URL
  
  <strong>svn_log()</strong> returns the complete history of the item at the repository URL <strong>$repos_url</strong>, or the
  history of a specific revision if <strong>$start_revision</strong> is set. This function is equivalent to svn log
  --verbose -r $start_revision $repos_url.

<comment>Param:</comment>
  <info>string</info>  <strong>$repos_url     </strong>  Repository URL of the item to retrieve log history from.
  <info>int   </info>  <strong>$start_revision</strong>  Revision number of the first log to retrieve. Use <info>SVN_REVISION_HEAD</info> to
                           retrieve the log from the most recent revision.
  <info>int   </info>  <strong>$end_revision  </strong>  Revision number of the last log to retrieve. Defaults to <strong>$start_revision</strong>
                           if specified or to <info>SVN_REVISION_INITIAL</info> otherwise.
  <info>int   </info>  <strong>$limit         </strong>  Number of logs to retrieve.
  <info>int   </info>  <strong>$flags         </strong>  Any combination of <info>SVN_OMIT_MESSAGES</info>, <info>SVN_DISCOVER_CHANGED_PATHS</info> and
                           <info>SVN_STOP_ON_COPY</info>.

<comment>Return:</comment>
  <info>array</info>  On success, this function returns an array file listing in the format of:  Array, ordered
         most recent (highest) revision first
         ( [rev] => integer revision number [author] => string author name [msg] => string log
         message [date] => string date formatted per ISO 8601, i.e. date('c') [paths] => Array,
         describing changed files ( [0] => Array ( [action] => string letter signifying change
         [path] =>  absolute repository path of changed file ) [1] => ... )
         )
         [1] => ...
         ]]>
         
         The output will always be a numerically indexed array of arrays, even when there are none
         or only one log message(s).
         
         The value of action is a subset of the status output in the first column, where possible
         values are:
         
         If no changes were made to the item, an empty array is returned.

<comment>See Also:</comment>
   * 
      SVN documentation on svn log
     


id: svn_ls
type: function
doc:
<comment>Description:</comment>
  Returns list of directory contents in repository URL, optionally at revision number
  
  This function queries the repository URL and returns a list of files and directories, optionally
  from a specific revision. This is equivalent to svn list $repos_url[@$revision_no]
  
  This function does not work with working copies. <strong>$repos_url</strong> must be a repository URL.

<comment>Param:</comment>
  <info>    </info>  <strong>$url     </strong>  URL of the repository, eg. http://www.example.com/svnroot. To access a local
                   Subversion repository via filesystem, use the file URI scheme, eg.
                   file:///home/user/svn-repos
  <info>    </info>  <strong>$revision</strong>  Integer revision number to retrieve listing of. When omitted, the HEAD revision
                   is used.
  <info>bool</info>  <strong>$recurse </strong>  Enables recursion.

<comment>Return:</comment>
  <info>array</info>  On success, this function returns an array file listing in the format of:  Array (
         [created_rev] => integer revision number of last edit [last_author] => string author name
         of last edit [size] => integer byte file size of file [time] => string date of last edit in
         form 'M d H:i' or 'M d Y', depending on how old the file is [time_t] => integer unix
         timestamp of last edit [name] => name of file/directory [type] => type, can be 'file' or
         'dir' )
         [1] => ...
         ]]>

<comment>See Also:</comment>
   * SVN documentation on svn list


id: svn_mkdir
type: function
doc:
<comment>Description:</comment>
  Creates a directory in a working copy or repository
  
  Creates a directory in a working copy or repository.

<comment>Param:</comment>
  <info>string</info>  <strong>$path</strong>  The path to the working copy or repository.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>svn_add()</strong>
   * <strong>svn_copy()</strong>


id: svn_repos_create
type: function
doc:
<comment>Description:</comment>
  Create a new subversion repository at path
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Create a new subversion repository at path

<comment>Return:</comment>
  <info>resource</info>  


id: svn_repos_fs
type: function
doc:
<comment>Description:</comment>
  Gets a handle on the filesystem for a repository
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Gets a handle on the filesystem for a repository

<comment>Return:</comment>
  <info>resource</info>  


id: svn_repos_fs_commit_txn
type: function
doc:
<comment>Description:</comment>
  Commits a transaction and returns the new revision
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Commits a transaction and returns the new revision

<comment>Return:</comment>
  <info>int</info>  


id: svn_repos_hotcopy
type: function
doc:
<comment>Description:</comment>
  Make a hot-copy of the repos at repospath; copy it to destpath
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Make a hot-copy of the repos at repospath; copy it to destpath

<comment>Return:</comment>
  <info>bool</info>  


id: svn_repos_open
type: function
doc:
<comment>Description:</comment>
  Open a shared lock on a repository
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Open a shared lock on a repository.

<comment>Return:</comment>
  <info>resource</info>  


id: svn_repos_recover
type: function
doc:
<comment>Description:</comment>
  Run recovery procedures on the repository located at path
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  Run recovery procedures on the repository located at path.

<comment>Return:</comment>
  <info>bool</info>  


id: svn_revert
type: function
doc:
<comment>Description:</comment>
  Revert changes to the working copy
  
  Revert any local changes to the path in a working copy.

<comment>Param:</comment>
  <info>string</info>  <strong>$path     </strong>  The path to the working repository.
  <info>bool  </info>  <strong>$recursive</strong>  Optionally make recursive changes.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>svn_delete()</strong>
   * <strong>svn_export()</strong>


id: svn_status
type: function
doc:
<comment>Description:</comment>
  Returns the status of working copy files and directories
  
  Returns the status of working copy files and directories, giving modifications, additions,
  deletions and other changes to items in the working copy.

<comment>Param:</comment>
  <info>string</info>  <strong>$path </strong>  Local path to file or directory to retrieve status of.
                  
                  Căile relative vor fi rezolvate ca și cum directorul curent este cel
                  ce conține binarul PHP. Pentru a utiliza directorul de lucru al scriptului
                  apelant, utilizați <strong>realpath()</strong> sau dirname(__FILE__).
  <info>int   </info>  <strong>$flags</strong>  Any combination of <info>Svn::NON_RECURSIVE</info>, <info>Svn::ALL</info> (regardless of modification
                  status), <info>Svn::SHOW_UPDATES</info> (entries will be added for items that are out-of-date),
                  <info>Svn::NO_IGNORE</info> (disregard <return>svn:ignore</return> properties when scanning for new files) and
                  <info>Svn::IGNORE_EXTERNALS</info>.

<comment>Return:</comment>
  <info>array</info>  Returns a numerically indexed array of associative arrays detailing the status of items in
         the repository:
         
         The information on the item is an associative array that can contain the following keys:
         
         String path to file/directory of this entry on local filesystem.
         
         Status of item's text. Accesați 
         constantele de starepentru a afla valorile posibile.
         
         Status of item's text in repository. Only accurate if <strong>$update</strong> was set to <info>true</info>. Accesați 
         constantele de starepentru a afla valorile posibile.
         
         Status of item's properties. Accesați 
         constantele de starepentru a afla valorile posibile.
         
         Status of item's property in repository. Only accurate if <strong>$update</strong> was set to <info>true</info>. Accesați 
         constantele de starepentru a afla valorile posibile.
         
         Whether or not the item is locked. (Only set if <info>true</info>.)
         
         Whether or not the item was copied (scheduled for addition with history). (Only set if
         <info>true</info>.)
         
         Whether or not the item was switched using the switch command. (Only set if <info>true</info>)
         
         These keys are only set if the item is versioned:
         
         Base name of item in repository.
         
         URL of item in repository.
         
         Base URL of repository.
         
         Integer revision of item in working copy.
         
         Type of item, i.e. file or directory. Accesați 
         constante de tip pentru a afla valorile posibile.
         
         Scheduled action for item, i.e. addition or deletion. Constants for these magic numbers are
         not available, they can be emulated by using:
         
         Whether or not the item was deleted, but parent revision lags behind. (Only set if <info>true</info>.)
         
         Whether or not the item is absent, that is, Subversion knows that there should be something
         there but there isn't. (Only set if <info>true</info>.)
         
         Whether or not the entries file for a directory is incomplete. (Only set if <info>true</info>.)
         
         Integer Unix timestamp of last commit date. (Unaffected by <strong>$update</strong>.)
         
         Integer revision of last commit. (Unaffected by <strong>$update</strong>.)
         
         String author of last commit. (Unaffected by <strong>$update</strong>.)
         
         Integer Unix timestamp of last up-to-date time for properties
         
         Integer Unix timestamp of last up-to-date time for text

<comment>See Also:</comment>
   * <strong>svn_update()</strong>
   * <strong>svn_log()</strong>
   * SVN documentation for svn status


id: svn_update
type: function
doc:
<comment>Description:</comment>
  Update working copy
  
  Update working copy at <strong>$path</strong> to revision <strong>$revno</strong>. If <strong>$recurse</strong> is true, directories will be
  recursively updated.

<comment>Param:</comment>
  <info>string</info>  <strong>$path   </strong>  Path to local working copy.
                    
                    Căile relative vor fi rezolvate ca și cum directorul curent este cel
                    ce conține binarul PHP. Pentru a utiliza directorul de lucru al scriptului
                    apelant, utilizați <strong>realpath()</strong> sau dirname(__FILE__).
  <info>int   </info>  <strong>$revno  </strong>  Revision number to update to, default is <info>SVN_REVISION_HEAD</info>.
  <info>bool  </info>  <strong>$recurse</strong>  Whether or not to recursively update directories.

<comment>Return:</comment>
  <info>int</info>  Returns new revision number on success, returns <info>false</info> on failure.

<comment>See Also:</comment>
   * <strong>svn_checkout()</strong>
   * <strong>svn_commit()</strong>
   * SVN documentation for svn update


id: swoole_async_dns_lookup
type: function
doc:
<comment>Description:</comment>
  Async and non-blocking hostname to IP lookup

<comment>Param:</comment>
  <info>string  </info>  <strong>$hostname</strong>  The host name.
  <info>callable</info>  <strong>$callback</strong>  The host name.
                       
                       The IP address.
  <info>string  </info>  <strong>$hostname</strong>  The host name.
  <info>        </info>  <strong>$IP      </strong>  The IP address.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.


id: swoole_async_read
type: function
doc:
<comment>Description:</comment>
  Read file stream asynchronously

<comment>Param:</comment>
  <info>string  </info>  <strong>$filename  </strong>  The filename of the file being read.
  <info>callable</info>  <strong>$callback  </strong>  The name of the file.
                         
                         The content readed from the file stream.
  <info>string  </info>  <strong>$filename  </strong>  The name of the file.
  <info>string  </info>  <strong>$content   </strong>  The content readed from the file stream.
  <info>int     </info>  <strong>$chunk_size</strong>  The chunk length.
  <info>int     </info>  <strong>$offset    </strong>  The offset.

<comment>Return:</comment>
  <info>bool</info>  Whether the read is succeed.


id: swoole_async_readfile
type: function
doc:
<comment>Description:</comment>
  Read a file asynchronously

<comment>Param:</comment>
  <info>string  </info>  <strong>$filename</strong>  The filename of the file being read.
  <info>callable</info>  <strong>$callback</strong>  The name of the file.
                       
                       The content readed from the file.
  <info>string  </info>  <strong>$filename</strong>  The name of the file.
  <info>string  </info>  <strong>$content </strong>  The content readed from the file.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.


id: swoole_async_set
type: function
doc:
<comment>Description:</comment>
  Update the async I/O options

<comment>Param:</comment>
  <info>array</info>  <strong>$settings</strong>  

<comment>Return:</comment>
  <info>void</info>  


id: swoole_async_write
type: function
doc:
<comment>Description:</comment>
  Write data to a file stream asynchronously

<comment>Param:</comment>
  <info>string  </info>  <strong>$filename</strong>  The filename being written.
  <info>string  </info>  <strong>$content </strong>  The content writing to the file.
  <info>int     </info>  <strong>$offset  </strong>  The offset.
  <info>callable</info>  <strong>$callback</strong>  

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.


id: swoole_async_writefile
type: function
doc:
<comment>Description:</comment>
  Write data to a file asynchronously

<comment>Param:</comment>
  <info>string  </info>  <strong>$filename</strong>  The filename being written.
  <info>string  </info>  <strong>$content </strong>  The content writing to the file.
  <info>callable</info>  <strong>$callback</strong>  
  <info>int     </info>  <strong>$flags   </strong>  

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.


id: swoole_client_select
type: function
doc:
<comment>Description:</comment>
  Get the file description which are ready to read/write or error

<comment>Param:</comment>
  <info>array</info>  <strong>$read_array </strong>  
  <info>array</info>  <strong>$write_array</strong>  
  <info>array</info>  <strong>$error_array</strong>  
  <info>float</info>  <strong>$timeout    </strong>  

<comment>Return:</comment>
  <info>int</info>  


id: swoole_cpu_num
type: function
doc:
<comment>Description:</comment>
  Get the number of CPU

<comment>Return:</comment>
  <info>int</info>  The number of CPU.


id: swoole_errno
type: function
doc:
<comment>Description:</comment>
  Get the error code of the latest system call

<comment>Return:</comment>
  <info>int</info>  


id: swoole_event_add
type: function
doc:
<comment>Description:</comment>
  Add new callback functions of a socket into the EventLoop

<comment>Param:</comment>
  <info>int     </info>  <strong>$fd            </strong>  
  <info>callable</info>  <strong>$read_callback </strong>  
  <info>callable</info>  <strong>$write_callback</strong>  
  <info>int     </info>  <strong>$events        </strong>  

<comment>Return:</comment>
  <info>int</info>  


id: swoole_event_defer
type: function
doc:
<comment>Description:</comment>
  Add callback function to the next event loop

<comment>Param:</comment>
  <info>callable</info>  <strong>$callback</strong>  

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.


id: swoole_event_del
type: function
doc:
<comment>Description:</comment>
  Remove all event callback functions of a socket

<comment>Param:</comment>
  <info>int</info>  <strong>$fd</strong>  

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.


id: swoole_event_exit
type: function
doc:
<comment>Description:</comment>
  Exit the eventloop, only available at the client side

<comment>Return:</comment>
  <info>void</info>  


id: swoole_event_set
type: function
doc:
<comment>Description:</comment>
  Update the event callback functions of a socket

<comment>Param:</comment>
  <info>int     </info>  <strong>$fd            </strong>  
  <info>callable</info>  <strong>$read_callback </strong>  
  <info>callable</info>  <strong>$write_callback</strong>  
  <info>int     </info>  <strong>$events        </strong>  

<comment>Return:</comment>
  <info>bool</info>  


id: swoole_event_wait
type: function
doc:
<comment>Description:</comment>
  Start the event loop

<comment>Return:</comment>
  <info>void</info>  


id: swoole_event_write
type: function
doc:
<comment>Description:</comment>
  Write data to a socket

<comment>Param:</comment>
  <info>int   </info>  <strong>$fd  </strong>  
  <info>string</info>  <strong>$data</strong>  

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.


id: swoole_get_local_ip
type: function
doc:
<comment>Description:</comment>
  Get the IPv4 IP addresses of each NIC on the machine

<comment>Return:</comment>
  <info>array</info>  


id: swoole_last_error
type: function
doc:
<comment>Description:</comment>
  Get the lastest error message

<comment>Return:</comment>
  <info>int</info>  


id: swoole_load_module
type: function
doc:
<comment>Description:</comment>
  Load a swoole extension

<comment>Return:</comment>
  <info>mixed</info>  


id: swoole_select
type: function
doc:
<comment>Description:</comment>
  Select the file descriptions which are ready to read/write or error in the eventloop

<comment>Param:</comment>
  <info>array</info>  <strong>$read_array </strong>  
  <info>array</info>  <strong>$write_array</strong>  
  <info>array</info>  <strong>$error_array</strong>  
  <info>float</info>  <strong>$timeout    </strong>  

<comment>Return:</comment>
  <info>int</info>  


id: swoole_set_process_name
type: function
doc:
<comment>Description:</comment>
  Set the process name

<comment>Param:</comment>
  <info>string</info>  <strong>$process_name</strong>  

<comment>Return:</comment>
  <info>void</info>  


id: swoole_strerror
type: function
doc:
<comment>Description:</comment>
  Convert the Errno into error messages

<comment>Param:</comment>
  <info>int</info>  <strong>$errno</strong>  

<comment>Return:</comment>
  <info>string</info>  


id: swoole_timer_after
type: function
doc:
<comment>Description:</comment>
  Trigger a one time callback function in the future

<comment>Param:</comment>
  <info>int     </info>  <strong>$ms      </strong>  
  <info>callable</info>  <strong>$callback</strong>  
  <info>mixed   </info>  <strong>$param   </strong>  

<comment>Return:</comment>
  <info>int</info>  


id: swoole_timer_exists
type: function
doc:
<comment>Description:</comment>
  Check if a timer callback function is existed

<comment>Param:</comment>
  <info>int</info>  <strong>$timer_id</strong>  

<comment>Return:</comment>
  <info>bool</info>  


id: swoole_timer_tick
type: function
doc:
<comment>Description:</comment>
  Trigger a timer tick callback function by time interval

<comment>Param:</comment>
  <info>int     </info>  <strong>$ms      </strong>  
  <info>callable</info>  <strong>$callback</strong>  

<comment>Return:</comment>
  <info>int</info>  


id: swoole_version
type: function
doc:
<comment>Description:</comment>
  Get the version of Swoole

<comment>Return:</comment>
  <info>string</info>  The version of Swoole.


id: symlink
type: function
doc:
<comment>Description:</comment>
  Creates a symbolic link
  
  <strong>symlink()</strong> creates a symbolic link to the existing <strong>$target</strong> with the specified name <strong>$link</strong>.

<comment>Param:</comment>
  <info>string</info>  <strong>$target</strong>  Target of the link.
  <info>string</info>  <strong>$link  </strong>  The link name.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>link()</strong>
   * <strong>readlink()</strong>
   * <strong>linkinfo()</strong>
   * <strong>unlink()</strong>


id: sys_get_temp_dir
type: function
doc:
<comment>Description:</comment>
  Returns directory path used for temporary files
  
  Returns the path of the directory PHP stores temporary files in by default.

<comment>Return:</comment>
  <info>string</info>  Returns the path of the temporary directory.

<comment>See Also:</comment>
   * <strong>tmpfile()</strong>
   * <strong>tempnam()</strong>


id: sys_getloadavg
type: function
doc:
<comment>Description:</comment>
  Gets system load average
  
  Returns three samples representing the average system load (the number of processes in the system
  run queue) over the last 1, 5 and 15 minutes, respectively. Returns <info>false</info> on failure.

<comment>Return:</comment>
  <info>arrayfalse</info>  Returns an <info>array</info> with three samples (last 1, 5 and 15 minutes).


id: syslog
type: function
doc:
<comment>Description:</comment>
  Generate a system log message
  
  <strong>syslog()</strong> generates a log message that will be distributed by the system logger.
  
  For information on setting up a user defined log handler, see the syslog.conf5 Unix manual page.
  More information on the syslog facilities and option can be found in the man pages for syslog3 on
  Unix machines.

<comment>Param:</comment>
  <info>int   </info>  <strong>$priority</strong>  <strong>$priority</strong> is a combination of the facility and the level. Possible values are:
                     <strong>syslog()</strong> Priorities (in descending order)ConstantDescription<info>LOG_EMERG</info>system is
                     unusable<info>LOG_ALERT</info>action must be taken immediately<info>LOG_CRIT</info>critical
                     conditions<info>LOG_ERR</info>error conditions<info>LOG_WARNING</info>warning conditions<info>LOG_NOTICE</info>normal,
                     but significant, condition<info>LOG_INFO</info>informational message<info>LOG_DEBUG</info>debug-level
                     message
  <info>string</info>  <strong>$message </strong>  The message to send, except that the two characters <return>%m</return> will be replaced by the
                     error message string (strerror) corresponding to the present value of errno.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>openlog()</strong>
   * <strong>closelog()</strong>


id: system
type: function
doc:
<comment>Description:</comment>
  Execute an external program and display the output
  
  <strong>system()</strong> is just like the C version of the function in that it executes the given <strong>$command</strong> and
  outputs the result.
  
  The <strong>system()</strong> call also tries to automatically flush the web server's output buffer after each line
  of output if PHP is running as a server module.
  
  If you need to execute a command and have all the data from the command passed directly back
  without any interference, use the <strong>passthru()</strong> function.

<comment>Param:</comment>
  <info>string</info>  <strong>$command    </strong>  The command that will be executed.
  <info>int   </info>  <strong>$result_code</strong>  If the <strong>$result_code</strong> argument is present, then the return status of the
                        executed command will be written to this variable.

<comment>Return:</comment>
  <info>stringfalse</info>  Returns the last line of the command output on success, and <info>false</info> on failure.

<comment>See Also:</comment>
   * <strong>exec()</strong>
   * <strong>passthru()</strong>
   * <strong>popen()</strong>
   * <strong>escapeshellcmd()</strong>
   * <strong>pcntl_exec()</strong>
   * backtick operator


id: taint
type: function
doc:
<comment>Description:</comment>
  Taint a string
  
  Make a string tainted. This is used for testing purpose only.

<comment>Param:</comment>
  <info>string</info>  <strong>$string </strong>  
  <info>string</info>  <strong>$strings</strong>  

<comment>Return:</comment>
  <info>bool</info>  Return TRUE if the transformation is done. Always return TRUE if the taint extension is not
        enabled.


id: tan
type: function
doc:
<comment>Description:</comment>
  Tangent
  
  <strong>tan()</strong> returns the tangent of the <strong>$num</strong> parameter.  The <strong>$num</strong> parameter is in radians.

<comment>Param:</comment>
  <info>float</info>  <strong>$num</strong>  The argument to process in radians

<comment>Return:</comment>
  <info>float</info>  The tangent of <strong>$num</strong>

<comment>See Also:</comment>
   * <strong>atan()</strong>
   * <strong>atan2()</strong>
   * <strong>sin()</strong>
   * <strong>cos()</strong>
   * <strong>tanh()</strong>
   * <strong>deg2rad()</strong>


id: tanh
type: function
doc:
<comment>Description:</comment>
  Hyperbolic tangent
  
  Returns the hyperbolic tangent of <strong>$num</strong>, defined as <return>sinh(num)/cosh(num)</return>.

<comment>Param:</comment>
  <info>float</info>  <strong>$num</strong>  The argument to process

<comment>Return:</comment>
  <info>float</info>  The hyperbolic tangent of <strong>$num</strong>

<comment>See Also:</comment>
   * <strong>tan()</strong>
   * <strong>atanh()</strong>
   * <strong>sinh()</strong>
   * <strong>cosh()</strong>


id: tcpwrap_check
type: function
doc:
<comment>Description:</comment>
  Performs a tcpwrap check
  
  This function consults the /etc/hosts.allow and  /etc/hosts.deny files to check if access to
  service  <strong>$daemon</strong> should be granted or denied for a client.

<comment>Param:</comment>
  <info>string</info>  <strong>$daemon </strong>  The service name.
  <info>string</info>  <strong>$address</strong>  The client remote address. Can be either an IP address or a domain name.
  <info>string</info>  <strong>$user   </strong>  An optional user name.
  <info>bool  </info>  <strong>$nodns  </strong>  If <strong>$address</strong> looks like domain name then DNS is  used to resolve it to IP
                    address; set <strong>$nodns</strong> to  <info>true</info> to avoid this.

<comment>Return:</comment>
  <info>bool</info>  This function returns <info>true</info> if access should be granted, <info>false</info> otherwise.


id: tempnam
type: function
doc:
<comment>Description:</comment>
  Create file with unique file name
  
  Creates a file with a unique filename, with access permission set to 0600, in the specified
  directory. If the directory does not exist or is not writable, <strong>tempnam()</strong> may generate a file in
  the system's temporary directory, and return the full path to that file, including its name.

<comment>Param:</comment>
  <info>string</info>  <strong>$directory</strong>  The directory where the temporary filename will be created.
  <info>string</info>  <strong>$prefix   </strong>  The prefix of the generated temporary filename.
                      
                      Only the first 63 characters of the prefix are used. Windows even uses only
                      the first three characters of the prefix.

<comment>Return:</comment>
  <info>stringfalse</info>  Returns the new temporary filename (with path), or <info>false</info> on failure.

<comment>See Also:</comment>
   * <strong>tmpfile()</strong>
   * <strong>sys_get_temp_dir()</strong>
   * <strong>unlink()</strong>


id: textdomain
type: function
doc:
<comment>Description:</comment>
  Sets the default domain
  
  This function sets the domain to search within when calls are made to <strong>gettext()</strong>, usually the named
  after an application.

<comment>Param:</comment>
  <info>stringnull</info>  <strong>$domain</strong>  The new message domain, or <info>null</info> to get the current setting without changing
                       it

<comment>Return:</comment>
  <info>string</info>  If successful, this function returns the current message domain, after possibly changing
          it.


id: tidy::__construct
type: function
doc:
<comment>Description:</comment>
  Constructs a new tidy object
  
  Constructs a new <class>tidy</class> object.

<comment>Param:</comment>
  <info>stringnull     </info>  <strong>$filename      </strong>  If the <strong>$filename</strong> parameter is given, this function will also
                                    read that file and initialize the object with the file, acting
                                    like <strong>tidy_parse_file()</strong>.
  <info>arraystringnull</info>  <strong>$config        </strong>  The config <strong>$config</strong> can be passed either as an array or as a
                                    string. If a string is passed, it is interpreted as the name of
                                    the configuration file, otherwise, it is interpreted as the
                                    options themselves.
                                    
                                    For an explanation about each option, visit
                                    http://api.html-tidy.org/#quick-reference.
  <info>stringnull     </info>  <strong>$encoding      </strong>  The <strong>$encoding</strong> parameter sets the encoding for input/output
                                    documents. The possible values for encoding  are:  <return>ascii</return>,
                                    <return>latin0</return>, <return>latin1</return>, <return>raw</return>, <return>utf8</return>, <return>iso2022</return>, <return>mac</return>, <return>win1252</return>, <return>ibm858</return>, <return>utf16</return>,
                                    <return>utf16le</return>, <return>utf16be</return>, <return>big5</return>, and <return>shiftjis</return>.
  <info>bool           </info>  <strong>$useIncludePath</strong>  Search for the file in the include_path.

<comment>Return:</comment>
  <info>unknown</info>  Returns the new <class>tidy</class> instance.

<comment>See Also:</comment>
   * <strong>tidy::parseFile()</strong>
   * <strong>tidy::parseString()</strong>


id: tidy::body
type: function
doc:
<comment>Description:</comment>
  Returns a tidyNode object starting from the  tag of the tidy parse tree
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns a <class>tidyNode</class> object starting from the  \<body&gt; tag of the tidy parse tree.

<comment>Param:</comment>
  <info>tidy</info>  <strong>$tidy</strong>  Obiectul <class>
               Tidy</class>.

<comment>Return:</comment>
  <info>tidyNodenull</info>  Returns a <class>tidyNode</class> object starting from the  \<body&gt; tag of the tidy parse tree.

<comment>See Also:</comment>
   * <strong>tidy::head()</strong>
   * <strong>tidy::html()</strong>


id: tidy::cleanRepair
type: function
doc:
<comment>Description:</comment>
  Execute configured cleanup and repair operations on parsed markup
  
  Stil obiect-orientat
  
  Stil procedural
  
  This function cleans and repairs the given tidy <strong>$tidy</strong>.

<comment>Param:</comment>
  <info>tidy</info>  <strong>$tidy</strong>  Obiectul <class>
               Tidy</class>.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>tidy::repairFile()</strong>
   * <strong>tidy::repairString()</strong>


id: tidy::diagnose
type: function
doc:
<comment>Description:</comment>
  Run configured diagnostics on parsed and repaired markup
  
  Stil obiect-orientat
  
  Stil procedural
  
  Runs diagnostic tests on the given tidy <strong>$tidy</strong>, adding some more information about the document in
  the error buffer.

<comment>Param:</comment>
  <info>tidy</info>  <strong>$tidy</strong>  Obiectul <class>
               Tidy</class>.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>tidy::errorBuffer()</strong>


id: tidy::getConfig
type: function
doc:
<comment>Description:</comment>
  Get current Tidy configuration
  
  Stil obiect-orientat
  
  Stil procedural
  
  Gets the list of the configuration options in use by the given tidy <strong>$tidy</strong>.

<comment>Param:</comment>
  <info>tidy</info>  <strong>$tidy</strong>  Obiectul <class>
               Tidy</class>.

<comment>Return:</comment>
  <info>array</info>  Returns an array of configuration options.
         
         For an explanation about each option, visit http://api.html-tidy.org/#quick-reference.

<comment>See Also:</comment>
   * <strong>tidy_reset_config()</strong>
   * <strong>tidy_save_config()</strong>


id: tidy::getHtmlVer
type: function
doc:
<comment>Description:</comment>
  Get the Detected HTML version for the specified document
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns the detected HTML version for the specified tidy <strong>$tidy</strong>.

<comment>Param:</comment>
  <info>tidy</info>  <strong>$tidy</strong>  Obiectul <class>
               Tidy</class>.

<comment>Return:</comment>
  <info>int</info>  Returns the detected HTML version.
       
       This function is not yet implemented in the Tidylib itself, so it always return <return>0</return>.


id: tidy::getOpt
type: function
doc:
<comment>Description:</comment>
  Returns the value of the specified configuration option for the tidy document
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns the value of the specified <strong>$option</strong> for the specified tidy <strong>$tidy</strong>.

<comment>Param:</comment>
  <info>tidy  </info>  <strong>$tidy  </strong>  Obiectul <class>
                   Tidy</class>.
  <info>string</info>  <strong>$option</strong>  You will find a list with each configuration option and their types at:
                   http://api.html-tidy.org/#quick-reference.

<comment>Return:</comment>
  <info>stringintbool</info>  Returns the value of the specified <strong>$option</strong>. The return type depends on the type of
                 the specified one.


id: tidy::getOptDoc
type: function
doc:
<comment>Description:</comment>
  Returns the documentation for the given option name
    
  
  Stil obiect-orientat
  
  Stil procedural
  
  <strong>tidy_get_opt_doc()</strong> returns the documentation for the given option name.
  
  You need at least libtidy from 25 April, 2005 for this function be available.

<comment>Param:</comment>
  <info>tidy  </info>  <strong>$tidy  </strong>  Obiectul <class>
                   Tidy</class>.
  <info>string</info>  <strong>$option</strong>  The option name

<comment>Return:</comment>
  <info>stringfalse</info>  Returns a string if the option exists and has documentation available, or <info>false</info>
               otherwise.

<comment>See Also:</comment>
   * <strong>tidy::getconfig()</strong>
   * <strong>tidy::getopt()</strong>


id: tidy::getRelease
type: function
doc:
<comment>Description:</comment>
  Get release date (version) for Tidy library
  
  Stil obiect-orientat
  
  Stil procedural
  
  Gets the release date of the Tidy library.

<comment>Return:</comment>
  <info>string</info>  Returns a string with the release date of the Tidy library, which may be 'unknown'.


id: tidy::getStatus
type: function
doc:
<comment>Description:</comment>
  Get status of specified document
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns the status for the specified tidy <strong>$tidy</strong>.

<comment>Param:</comment>
  <info>tidy</info>  <strong>$tidy</strong>  Obiectul <class>
               Tidy</class>.

<comment>Return:</comment>
  <info>int</info>  Returns 0 if no error/warning was raised, 1 for warnings or accessibility errors, or 2 for
       errors.


id: tidy::head
type: function
doc:
<comment>Description:</comment>
  Returns a tidyNode object starting from the  tag of the tidy parse tree
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns a <class>tidyNode</class> object starting from the \<head&gt; tag of the tidy parse tree.

<comment>Param:</comment>
  <info>tidy</info>  <strong>$tidy</strong>  Obiectul <class>
               Tidy</class>.

<comment>Return:</comment>
  <info>tidyNodenull</info>  Returns the <class>tidyNode</class> object.

<comment>See Also:</comment>
   * <strong>tidy::body()</strong>
   * <strong>tidy::html()</strong>


id: tidy::html
type: function
doc:
<comment>Description:</comment>
  Returns a tidyNode object starting from the  tag of the tidy parse tree
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns a <class>tidyNode</class> object starting from the \<html&gt; tag of the tidy parse tree.

<comment>Param:</comment>
  <info>tidy</info>  <strong>$tidy</strong>  Obiectul <class>
               Tidy</class>.

<comment>Return:</comment>
  <info>tidyNodenull</info>  Returns the <class>tidyNode</class> object.

<comment>See Also:</comment>
   * <strong>tidy::body()</strong>
   * <strong>tidy::head()</strong>


id: tidy::isXhtml
type: function
doc:
<comment>Description:</comment>
  Indicates if the document is a XHTML document
  
  Stil obiect-orientat
  
  Stil procedural
  
  Tells if the document is a XHTML document.

<comment>Param:</comment>
  <info>tidy</info>  <strong>$tidy</strong>  Obiectul <class>
               Tidy</class>.

<comment>Return:</comment>
  <info>bool</info>  This function returns <info>true</info> if the specified tidy <strong>$tidy</strong> is a XHTML document, or <info>false</info>
        otherwise.
        
        This function is not yet implemented in the Tidylib itself, so it always return <info>false</info>.


id: tidy::isXml
type: function
doc:
<comment>Description:</comment>
  Indicates if the document is a generic (non HTML/XHTML) XML document
  
  Stil obiect-orientat
  
  Stil procedural
  
  Tells if the document is a generic (non HTML/XHTML) XML document.

<comment>Param:</comment>
  <info>tidy</info>  <strong>$tidy</strong>  Obiectul <class>
               Tidy</class>.

<comment>Return:</comment>
  <info>bool</info>  This function returns <info>true</info> if the specified tidy <strong>$tidy</strong> is a generic XML document (non
        HTML/XHTML), or <info>false</info> otherwise.
        
        This function is not yet implemented in the Tidylib itself, so it always return <info>false</info>.


id: tidy::parseFile
type: function
doc:
<comment>Description:</comment>
  Parse markup in file or URI
  
  Stil obiect-orientat
  
  Stil procedural
  
  Parses the given file.

<comment>Param:</comment>
  <info>string         </info>  <strong>$filename      </strong>  If the <strong>$filename</strong> parameter is given, this function will also
                                    read that file and initialize the object with the file, acting
                                    like <strong>tidy_parse_file()</strong>.
  <info>arraystringnull</info>  <strong>$config        </strong>  The config <strong>$config</strong> can be passed either as an array or as a
                                    string. If a string is passed, it is interpreted as the name of
                                    the configuration file, otherwise, it is interpreted as the
                                    options themselves.
                                    
                                    For an explanation about each option, see
                                    http://api.html-tidy.org/#quick-reference.
  <info>stringnull     </info>  <strong>$encoding      </strong>  The <strong>$encoding</strong> parameter sets the encoding for input/output
                                    documents. The possible values for encoding  are:  <return>ascii</return>,
                                    <return>latin0</return>, <return>latin1</return>, <return>raw</return>, <return>utf8</return>, <return>iso2022</return>, <return>mac</return>, <return>win1252</return>, <return>ibm858</return>, <return>utf16</return>,
                                    <return>utf16le</return>, <return>utf16be</return>, <return>big5</return>, and <return>shiftjis</return>.
  <info>bool           </info>  <strong>$useIncludePath</strong>  Search for the file in the include_path.

<comment>Return:</comment>
  <info>bool</info>  tidy::parseFile returns <info>true</info> on success. <strong>tidy_parse_file()</strong> returns a new <class>tidy</class> instance on
        success. Both, the method and the function return <info>false</info> on failure.

<comment>See Also:</comment>
   * <strong>tidy::parsestring()</strong>
   * <strong>tidy::repairfile()</strong>
   * <strong>tidy::repairstring()</strong>


id: tidy::parseString
type: function
doc:
<comment>Description:</comment>
  Parse a document stored in a string
  
  Stil obiect-orientat
  
  Stil procedural
  
  Parses a document stored in a string.

<comment>Param:</comment>
  <info>string         </info>  <strong>$string  </strong>  The data to be parsed.
  <info>arraystringnull</info>  <strong>$config  </strong>  The config <strong>$config</strong> can be passed either as an array or as a string. If
                              a string is passed, it is interpreted as the name of the configuration
                              file, otherwise, it is interpreted as the options themselves.
                              
                              For an explanation about each option, visit
                              http://api.html-tidy.org/#quick-reference.
  <info>stringnull     </info>  <strong>$encoding</strong>  The <strong>$encoding</strong> parameter sets the encoding for input/output documents.
                              The possible values for encoding  are:  <return>ascii</return>, <return>latin0</return>, <return>latin1</return>, <return>raw</return>,
                              <return>utf8</return>, <return>iso2022</return>, <return>mac</return>, <return>win1252</return>, <return>ibm858</return>, <return>utf16</return>, <return>utf16le</return>, <return>utf16be</return>, <return>big5</return>,
                              and <return>shiftjis</return>.

<comment>Return:</comment>
  <info>bool</info>  tidy::parseString returns <info>true</info> on success. <strong>tidy_parse_string()</strong> returns a new <class>tidy</class> instance
        on success. Both, the method and the function return <info>false</info> on failure.

<comment>See Also:</comment>
   * <strong>tidy::parseFile()</strong>
   * <strong>tidy::repairFile()</strong>
   * <strong>tidy::repairString()</strong>


id: tidy::repairFile
type: function
doc:
<comment>Description:</comment>
  Repair a file and return it as a string
  
  Stil obiect-orientat
  
  Stil procedural
  
  Repairs the given file and returns it as a string.

<comment>Param:</comment>
  <info>string         </info>  <strong>$filename      </strong>  The file to be repaired.
  <info>arraystringnull</info>  <strong>$config        </strong>  The config <strong>$config</strong> can be passed either as an array or as a
                                    string. If a string is passed, it is interpreted as the name of
                                    the configuration file, otherwise, it is interpreted as the
                                    options themselves.
                                    
                                    Check http://tidy.sourceforge.net/docs/quickref.html for an
                                    explanation about each option.
  <info>stringnull     </info>  <strong>$encoding      </strong>  The <strong>$encoding</strong> parameter sets the encoding for input/output
                                    documents. The possible values for encoding  are:  <return>ascii</return>,
                                    <return>latin0</return>, <return>latin1</return>, <return>raw</return>, <return>utf8</return>, <return>iso2022</return>, <return>mac</return>, <return>win1252</return>, <return>ibm858</return>, <return>utf16</return>,
                                    <return>utf16le</return>, <return>utf16be</return>, <return>big5</return>, and <return>shiftjis</return>.
  <info>bool           </info>  <strong>$useIncludePath</strong>  Search for the file in the include_path.

<comment>Return:</comment>
  <info>stringfalse</info>  Returns the repaired contents as a string,  sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>tidy::parseFile()</strong>
   * <strong>tidy::parseString()</strong>
   * <strong>tidy::repairString()</strong>


id: tidy::repairString
type: function
doc:
<comment>Description:</comment>
  Repair a string using an optionally provided configuration file
  
  Stil obiect-orientat
  
  Stil procedural
  
  Repairs the given string.

<comment>Param:</comment>
  <info>string         </info>  <strong>$string  </strong>  The data to be repaired.
  <info>arraystringnull</info>  <strong>$config  </strong>  The config <strong>$config</strong> can be passed either as an array or as a string. If
                              a string is passed, it is interpreted as the name of the configuration
                              file, otherwise, it is interpreted as the options themselves.
                              
                              Check http://api.html-tidy.org/#quick-reference for an explanation
                              about each option.
  <info>stringnull     </info>  <strong>$encoding</strong>  The <strong>$encoding</strong> parameter sets the encoding for input/output documents.
                              The possible values for encoding  are:  <return>ascii</return>, <return>latin0</return>, <return>latin1</return>, <return>raw</return>,
                              <return>utf8</return>, <return>iso2022</return>, <return>mac</return>, <return>win1252</return>, <return>ibm858</return>, <return>utf16</return>, <return>utf16le</return>, <return>utf16be</return>, <return>big5</return>,
                              and <return>shiftjis</return>.

<comment>Return:</comment>
  <info>stringfalse</info>  Returns the repaired string,  sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>tidy::parseFile()</strong>
   * <strong>tidy::parseString()</strong>
   * <strong>tidy::repairFile()</strong>


id: tidy::root
type: function
doc:
<comment>Description:</comment>
  Returns a tidyNode object representing the root of the tidy parse tree
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns a <class>tidyNode</class> object representing the root of the tidy parse tree.

<comment>Param:</comment>
  <info>tidy</info>  <strong>$tidy</strong>  Obiectul <class>
               Tidy</class>.

<comment>Return:</comment>
  <info>tidyNodenull</info>  Returns the <class>tidyNode</class> object.


id: tidyNode::getParent
type: function
doc:
<comment>Description:</comment>
  Returns the parent node of the current node
  
  Returns the parent node of the current node.

<comment>Return:</comment>
  <info>tidyNodenull</info>  Returns a <info>tidyNode</info> if the node has a parent, or <info>null</info> otherwise.


id: tidyNode::hasChildren
type: function
doc:
<comment>Description:</comment>
  Checks if a node has children
  
  Tells if the node has children.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if the node has children, <info>false</info> otherwise.


id: tidyNode::hasSiblings
type: function
doc:
<comment>Description:</comment>
  Checks if a node has siblings
  
  Tells if the node has siblings.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if the node has siblings, <info>false</info> otherwise.


id: tidyNode::isAsp
type: function
doc:
<comment>Description:</comment>
  Checks if this node is ASP
  
  Tells whether the current node is ASP.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if the node is ASP, <info>false</info> otherwise.


id: tidyNode::isComment
type: function
doc:
<comment>Description:</comment>
  Checks if a node represents a comment
  
  Tells if the node is a comment.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if the node is a comment, <info>false</info> otherwise.


id: tidyNode::isHtml
type: function
doc:
<comment>Description:</comment>
  Checks if a node is an element node
  
  Tells if the node is an element node, but not the root node of the document.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if the node is an element node, but not the root node of the document, <info>false</info>
        otherwise.


id: tidyNode::isJste
type: function
doc:
<comment>Description:</comment>
  Checks if this node is JSTE
  
  Tells if the node is JSTE.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if the node is JSTE, <info>false</info> otherwise.


id: tidyNode::isPhp
type: function
doc:
<comment>Description:</comment>
  Checks if a node is PHP
  
  Tells if the node is PHP.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if the current node is PHP code, <info>false</info> otherwise.


id: tidyNode::isText
type: function
doc:
<comment>Description:</comment>
  Checks if a node represents text (no markup)
  
  Tells if the node represents a text (without any markup).

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if the node represent a text, <info>false</info> otherwise.


