# php_manual

id: mb_detect_encoding
type: function
doc:
<comment>Description:</comment>
  Detect character encoding
  
  Detects character encoding in <info>string</info> <strong>$string</strong>.

<comment>Param:</comment>
  <info>string         </info>  <strong>$string   </strong>  The <info>string</info> being detected.
  <info>arraystringnull</info>  <strong>$encodings</strong>  <strong>$encodings</strong> is list of character encoding. Encoding order may be
                               specified by array or comma separated list string.
                               
                               If <strong>$encodings</strong> is omitted or <info>null</info>, detect_order is used.
  <info>bool           </info>  <strong>$strict   </strong>  <strong>$strict</strong> specifies whether to use the strict encoding detection or
                               not. Default is <info>false</info>.

<comment>Return:</comment>
  <info>stringfalse</info>  The detected character encoding or <info>false</info> if the encoding cannot be detected from the
               given string.

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


id: mb_detect_order
type: function
doc:
<comment>Description:</comment>
  Set/Get character encoding detection order
  
  Sets the automatic character encoding detection order to <strong>$encoding</strong>.

<comment>Param:</comment>
  <info>arraystringnull</info>  <strong>$encoding</strong>  <strong>$encoding</strong> is an <info>array</info> or  comma separated list of character encoding.
                              See supported encodings.
                              
                              If <strong>$encoding</strong> is omitted or <info>null</info>, it returns the current character
                              encoding detection order as array.
                              
                              This setting affects <strong>mb_detect_encoding()</strong> and <strong>mb_send_mail()</strong>.
                              
                              <return>mbstring</return> currently implements the following encoding detection
                              filters. If there is an invalid byte sequence for the following
                              encodings, encoding detection will fail.
                              
                              <return>UTF-8</return>, <return>UTF-7</return>, <return>ASCII</return>, <return>EUC-JP</return>,<return>SJIS</return>, <return>eucJP-win</return>, <return>SJIS-win</return>, <return>JIS</return>,
                              <return>ISO-2022-JP</return>
                              
                              For <return>ISO-8859-*</return>, <return>mbstring</return> always detects as <return>ISO-8859-*</return>.
                              
                              For <return>UTF-16</return>, <return>UTF-32</return>, <return>UCS2</return> and <return>UCS4</return>, encoding detection will fail
                              always.

<comment>Return:</comment>
  <info>arraybool</info>  When setting the encoding detection order, <info>true</info> is returned on success or <info>false</info> on
             failure.
             
             When getting the encoding detection order, an ordered array of the encodings is
             returned.

<comment>See Also:</comment>
   * <strong>mb_internal_encoding()</strong>
   * <strong>mb_http_input()</strong>
   * <strong>mb_http_output()</strong>
   * <strong>mb_send_mail()</strong>


id: mb_encode_mimeheader
type: function
doc:
<comment>Description:</comment>
  Encode string for MIME header
  
  Encodes a given <info>string</info> <strong>$string</strong> by the MIME header encoding scheme.

<comment>Param:</comment>
  <info>string    </info>  <strong>$string           </strong>  The <info>string</info> being encoded. Its encoding should be same as
                                  <strong>mb_internal_encoding()</strong>.
  <info>stringnull</info>  <strong>$charset          </strong>  <strong>$charset</strong> specifies the name of the character set in which <strong>$string</strong>
                                  is represented in. The default value is determined by the current
                                  NLS setting (<return>mbstring.language</return>).
  <info>stringnull</info>  <strong>$transfer_encoding</strong>  <strong>$transfer_encoding</strong> specifies the scheme of MIME encoding. It
                                  should be either <return>"B"</return> (Base64) or <return>"Q"</return> (Quoted-Printable). Falls
                                  back to <return>"B"</return> if not given.
  <info>string    </info>  <strong>$newline          </strong>  <strong>$newline</strong> specifies the EOL (end-of-line) marker with which
                                  <strong>mb_encode_mimeheader()</strong> performs line-folding (a RFC term, the act
                                  of breaking a line longer than a certain length into multiple
                                  lines. The length is currently hard-coded to 74 characters). Falls
                                  back to <return>"\r\n"</return> (CRLF) if not given.
  <info>int       </info>  <strong>$indent           </strong>  Indentation of the first line (number of characters in the header
                                  before <strong>$string</strong>).

<comment>Return:</comment>
  <info>string</info>  A converted version of the <info>string</info> represented in ASCII.

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


id: mb_encode_numericentity
type: function
doc:
<comment>Description:</comment>
  Encode character to HTML numeric string reference
  
  Converts specified character codes in <info>string</info> <strong>$string</strong> from character code to HTML numeric character
  reference.

<comment>Param:</comment>
  <info>string    </info>  <strong>$string  </strong>  The <info>string</info> being encoded.
  <info>array     </info>  <strong>$map     </strong>  <strong>$map</strong> is array specifies code area to convert.
  <info>stringnull</info>  <strong>$encoding</strong>  Parametrul <strong>$encoding</strong> reprezintă codificarea caracterelor.
                         Dacă el este omis, va fi utilizată valoarea internă a codificării
                         caracterelor.
  <info>bool      </info>  <strong>$hex     </strong>  Whether the returned entity reference should be in hexadecimal notation
                         (otherwise it is in decimal notation).

<comment>Return:</comment>
  <info>string</info>  The converted <info>string</info>.

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


id: mb_encoding_aliases
type: function
doc:
<comment>Description:</comment>
  Get aliases of a known encoding type
  
  Returns an array of aliases for a known <strong>$encoding</strong> type.

<comment>Param:</comment>
  <info>string</info>  <strong>$encoding</strong>  The encoding type being checked, for aliases.

<comment>Return:</comment>
  <info>array</info>  Returns a numerically indexed array of encoding aliases on success, sau <info>false</info> în cazul
         eșecului

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


id: mb_ereg
type: function
doc:
<comment>Description:</comment>
  Regular expression match with multibyte support
  
  Executes the regular expression match with multibyte support.

<comment>Param:</comment>
  <info>string</info>  <strong>$pattern</strong>  The search pattern.
  <info>string</info>  <strong>$string </strong>  The search <info>string</info>.
  <info>array </info>  <strong>$matches</strong>  If matches are found for parenthesized substrings of <strong>$pattern</strong> and the function
                    is called with the third argument <strong>$matches</strong>, the matches will be stored in the
                    elements of the array <strong>$matches</strong>. If no matches are found, <strong>$matches</strong> is set to an
                    empty array.
                    
                    $matches[1] will contain the substring which starts at the first left
                    parenthesis; $matches[2] will contain the substring starting at the second, and
                    so on. $matches[0] will contain a copy of the complete string matched.

<comment>Return:</comment>
  <info>bool</info>  Returns whether <strong>$pattern</strong> matches <strong>$string</strong>.

<comment>See Also:</comment>
   * <strong>mb_regex_encoding()</strong>
   * <strong>mb_eregi()</strong>


id: mb_ereg_match
type: function
doc:
<comment>Description:</comment>
  Regular expression match for multibyte string
  
  A regular expression match for a multibyte string

<comment>Param:</comment>
  <info>string    </info>  <strong>$pattern</strong>  The regular expression pattern.
  <info>string    </info>  <strong>$string </strong>  The <info>string</info> being evaluated.
  <info>stringnull</info>  <strong>$options</strong>  The search option. See <strong>mb_regex_set_options()</strong> for explanation.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if <strong>$string</strong> matches the regular expression <strong>$pattern</strong>, <info>false</info> if not.

<comment>See Also:</comment>
   * <strong>mb_regex_encoding()</strong>
   * <strong>mb_ereg()</strong>


id: mb_ereg_replace
type: function
doc:
<comment>Description:</comment>
  Replace regular expression with multibyte support
  
  Scans <strong>$string</strong> for matches to <strong>$pattern</strong>, then replaces the matched text with <strong>$replacement</strong>

<comment>Param:</comment>
  <info>string    </info>  <strong>$pattern    </strong>  The regular expression pattern.
                            
                            Multibyte characters may be used in <strong>$pattern</strong>.
  <info>string    </info>  <strong>$replacement</strong>  The replacement text.
  <info>string    </info>  <strong>$string     </strong>  The <info>string</info> being checked.
  <info>stringnull</info>  <strong>$options    </strong>  The search option. See <strong>mb_regex_set_options()</strong> for explanation.

<comment>Return:</comment>
  <info>stringfalsenull</info>  The resultant <info>string</info> on success, or <info>false</info> on error. If <strong>$string</strong> is not valid for
                   the current encoding, <info>null</info> is returned.

<comment>See Also:</comment>
   * <strong>mb_regex_encoding()</strong>
   * <strong>mb_eregi_replace()</strong>


id: mb_ereg_replace_callback
type: function
doc:
<comment>Description:</comment>
  Perform a regular expression search and replace with multibyte support using a callback
    
  
  Scans <strong>$string</strong> for matches to <strong>$pattern</strong>, then replaces the matched text with the output of <strong>$callback</strong>
  function.
  
  The behavior of this function is almost identical to <strong>mb_ereg_replace()</strong>,  except for the fact that
  instead of <strong>$replacement</strong> parameter, one should specify a <strong>$callback</strong>.

<comment>Param:</comment>
  <info>string    </info>  <strong>$pattern </strong>  The regular expression pattern.
                         
                         Multibyte characters may be used in <strong>$pattern</strong>.
  <info>callable  </info>  <strong>$callback</strong>  A callback that will be called and passed an array of matched elements in
                         the  <strong>$subject</strong> string. The callback should return the replacement string.
                         
                         You'll often need the <strong>$callback</strong> function for a <strong>mb_ereg_replace_callback()</strong>
                         in just one place. In this case you can use an anonymous function to
                         declare the callback within the call to <strong>mb_ereg_replace_callback()</strong>. By
                         doing it this way you have all information for the call in one place and do
                         not clutter the function namespace with a callback function's name not used
                         anywhere else.
  <info>string    </info>  <strong>$string  </strong>  The <info>string</info> being checked.
  <info>stringnull</info>  <strong>$options </strong>  The search option. See <strong>mb_regex_set_options()</strong> for explanation.

<comment>Return:</comment>
  <info>stringfalsenull</info>  The resultant <info>string</info> on success, or <info>false</info> on error. If <strong>$string</strong> is not valid for
                   the current encoding, <info>null</info> is returned.

<comment>See Also:</comment>
   * <strong>mb_regex_encoding()</strong>
   * <strong>mb_ereg_replace()</strong>
   * Anonymous functions


id: mb_ereg_search
type: function
doc:
<comment>Description:</comment>
  Multibyte regular expression match for predefined multibyte string
  
  Performs a multibyte regular expression match for a predefined multibyte string.

<comment>Param:</comment>
  <info>stringnull</info>  <strong>$pattern</strong>  The search pattern.
  <info>stringnull</info>  <strong>$options</strong>  The search option. See <strong>mb_regex_set_options()</strong> for explanation.

<comment>Return:</comment>
  <info>bool</info>  <strong>mb_ereg_search()</strong> returns <info>true</info> if the multibyte string matches with the regular expression,
        or <info>false</info> otherwise. The <info>string</info> for matching is set by  <strong>mb_ereg_search_init()</strong>. If <strong>$pattern</strong> is
        not specified, the previous one is used.

<comment>See Also:</comment>
   * <strong>mb_regex_encoding()</strong>
   * <strong>mb_ereg_search_init()</strong>


id: mb_ereg_search_getpos
type: function
doc:
<comment>Description:</comment>
  Returns start point for next regular expression match
  
  Returns the start point for the next regular expression match.

<comment>Return:</comment>
  <info>int</info>  <strong>mb_ereg_search_getpos()</strong> returns the point to start regular expression match for
       <strong>mb_ereg_search()</strong>, <strong>mb_ereg_search_pos()</strong>, <strong>mb_ereg_search_regs()</strong>. The position is represented by
       bytes from the head of string.

<comment>See Also:</comment>
   * <strong>mb_regex_encoding()</strong>
   * <strong>mb_ereg_search_setpos()</strong>


id: mb_ereg_search_getregs
type: function
doc:
<comment>Description:</comment>
  Retrieve the result from the last multibyte regular expression match
  
  Retrieve the result from the last multibyte regular expression match

<comment>Return:</comment>
  <info>arrayfalse</info>  An <info>array</info> including the sub-string of matched part by last <strong>mb_ereg_search()</strong>,
              <strong>mb_ereg_search_pos()</strong>, <strong>mb_ereg_search_regs()</strong>. If there are some matches, the first
              element will have the matched sub-string, the second element will have the first part
              grouped with brackets,  the third element will have the second part grouped with
              brackets, and so on. It returns <info>false</info> on error.

<comment>See Also:</comment>
   * <strong>mb_regex_encoding()</strong>
   * <strong>mb_ereg_search_init()</strong>


id: mb_ereg_search_init
type: function
doc:
<comment>Description:</comment>
  Setup string and regular expression for a multibyte regular expression match
  
  <strong>mb_ereg_search_init()</strong> sets <strong>$string</strong> and <strong>$pattern</strong> for a multibyte regular expression. These values
  are used for <strong>mb_ereg_search()</strong>, <strong>mb_ereg_search_pos()</strong>, and <strong>mb_ereg_search_regs()</strong>.

<comment>Param:</comment>
  <info>string    </info>  <strong>$string </strong>  The search string.
  <info>stringnull</info>  <strong>$pattern</strong>  The search pattern.
  <info>stringnull</info>  <strong>$options</strong>  The search option. See <strong>mb_regex_set_options()</strong> for explanation.

<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>mb_regex_encoding()</strong>
   * <strong>mb_ereg_search_regs()</strong>


id: mb_ereg_search_pos
type: function
doc:
<comment>Description:</comment>
  Returns position and length of a matched part of the multibyte regular expression for a predefined
  multibyte string
  
  Returns position and length of a matched part of the multibyte regular expression  for a
  predefined multibyte string
  
  The string for match is specified by <strong>mb_ereg_search_init()</strong>. If it is not specified, the previous
  one will be used.

<comment>Param:</comment>
  <info>stringnull</info>  <strong>$pattern</strong>  The search pattern.
  <info>stringnull</info>  <strong>$options</strong>  The search option. See <strong>mb_regex_set_options()</strong> for explanation.

<comment>Return:</comment>
  <info>arrayfalse</info>  An <info>array</info> containing two elements. The first element is the offset, in bytes, where the
              match begins relative to the start of the search string, and the second element is the
              length in bytes of the match.
              
              If an error occurs, <info>false</info> is returned.

<comment>See Also:</comment>
   * <strong>mb_regex_encoding()</strong>
   * <strong>mb_ereg_search_init()</strong>


id: mb_ereg_search_regs
type: function
doc:
<comment>Description:</comment>
  Returns the matched part of a multibyte regular expression
  
  Returns the matched part of a multibyte regular expression.

<comment>Param:</comment>
  <info>stringnull</info>  <strong>$pattern</strong>  The search pattern.
  <info>stringnull</info>  <strong>$options</strong>  The search option. See <strong>mb_regex_set_options()</strong> for explanation.

<comment>Return:</comment>
  <info>arrayfalse</info>  <strong>mb_ereg_search_regs()</strong> executes the multibyte regular expression match, and if there
              are some matched part, it returns an <info>array</info> including substring of matched part as
              first element, the first grouped part with brackets as second element, the second
              grouped part as third element, and so on.  It returns <info>false</info> on error.

<comment>See Also:</comment>
   * <strong>mb_regex_encoding()</strong>
   * <strong>mb_ereg_search_init()</strong>


id: mb_ereg_search_setpos
type: function
doc:
<comment>Description:</comment>
  Set start point of next regular expression match
  
  <strong>mb_ereg_search_setpos()</strong> sets the starting point of a match for <strong>mb_ereg_search()</strong>.

<comment>Param:</comment>
  <info>int</info>  <strong>$offset</strong>  The position to set. If it is negative, it counts from the end of the string.

<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>mb_regex_encoding()</strong>
   * <strong>mb_ereg_search_init()</strong>


id: mb_eregi
type: function
doc:
<comment>Description:</comment>
  Regular expression match ignoring case with multibyte support
  
  Executes the case insensitive regular expression match with multibyte support.

<comment>Param:</comment>
  <info>string</info>  <strong>$pattern</strong>  The regular expression pattern.
  <info>string</info>  <strong>$string </strong>  The <info>string</info> being searched.
  <info>array </info>  <strong>$matches</strong>  If matches are found for parenthesized substrings of <strong>$pattern</strong> and the function
                    is called with the third argument <strong>$matches</strong>, the matches will be stored in the
                    elements of the array <strong>$matches</strong>. If no matches are found, <strong>$matches</strong> is set to an
                    empty array.
                    
                    $matches[1] will contain the substring which starts at the first left
                    parenthesis; $matches[2] will contain the substring starting at the second, and
                    so on. $matches[0] will contain a copy of the complete string matched.

<comment>Return:</comment>
  <info>bool</info>  Returns whether <strong>$pattern</strong> matches <strong>$string</strong>.

<comment>See Also:</comment>
   * <strong>mb_regex_encoding()</strong>
   * <strong>mb_ereg()</strong>


id: mb_eregi_replace
type: function
doc:
<comment>Description:</comment>
  Replace regular expression with multibyte support ignoring case
  
  Scans <strong>$string</strong> for matches to <strong>$pattern</strong>, then replaces the matched text with <strong>$replacement</strong>.

<comment>Param:</comment>
  <info>string    </info>  <strong>$pattern    </strong>  The regular expression pattern.  Multibyte characters may be used. The
                            case will be ignored.
  <info>string    </info>  <strong>$replacement</strong>  The replacement text.
  <info>string    </info>  <strong>$string     </strong>  The searched <info>string</info>.
  <info>stringnull</info>  <strong>$options    </strong>  The search option. See <strong>mb_regex_set_options()</strong> for explanation.

<comment>Return:</comment>
  <info>stringfalsenull</info>  The resultant <info>string</info> or <info>false</info> on error.  If <strong>$string</strong> is not valid for the current
                   encoding, <info>null</info> is returned.

<comment>See Also:</comment>
   * <strong>mb_regex_encoding()</strong>
   * <strong>mb_ereg_replace()</strong>


id: mb_get_info
type: function
doc:
<comment>Description:</comment>
  Get internal settings of mbstring
  
  <strong>mb_get_info()</strong> returns the internal setting parameters of mbstring.

<comment>Param:</comment>
  <info>string</info>  <strong>$type</strong>  If <strong>$type</strong> isn't specified or is specified to "all", an <info>array</info> having the elements
                 "internal_encoding", "http_output", "http_input", "func_overload", "mail_charset",
                 "mail_header_encoding", "mail_body_encoding" will be returned.
                 
                 If <strong>$type</strong> is specified as "http_output", "http_input", "internal_encoding",
                 "func_overload", the specified setting parameter will be returned.

<comment>Return:</comment>
  <info>arraystringintfalse</info>  An <info>array</info> of type information if <strong>$type</strong>  is not specified, otherwise a specific
                       <strong>$type</strong>, sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>mb_regex_encoding()</strong>
   * <strong>mb_http_output()</strong>


id: mb_http_input
type: function
doc:
<comment>Description:</comment>
  Detect HTTP input character encoding
  
  Detects the HTTP input character encoding.

<comment>Param:</comment>
  <info>stringnull</info>  <strong>$type</strong>  Input string specifies the input type.  <return>"G"</return> for GET, <return>"P"</return> for POST, <return>"C"</return> for
                     COOKIE, <return>"S"</return> for string, <return>"L"</return> for list, and <return>"I"</return> for the whole list (will return
                     <info>array</info>).  If type is omitted, it returns the last input type processed.

<comment>Return:</comment>
  <info>arraystringfalse</info>  The character encoding name, as per the <strong>$type</strong>, or an array of character encoding
                    names, if <strong>$type</strong> is <return>"I"</return>. If <strong>mb_http_input()</strong> does not process specified HTTP
                    input, it returns <info>false</info>.

<comment>See Also:</comment>
   * <strong>mb_internal_encoding()</strong>
   * <strong>mb_http_output()</strong>
   * <strong>mb_detect_order()</strong>


id: mb_http_output
type: function
doc:
<comment>Description:</comment>
  Set/Get HTTP output character encoding
  
  Set/Get the HTTP output character encoding. Output after this function is called will be converted
  from the set internal encoding to <strong>$encoding</strong>.

<comment>Param:</comment>
  <info>stringnull</info>  <strong>$encoding</strong>  If <strong>$encoding</strong> is set, <strong>mb_http_output()</strong> sets the HTTP output character
                         encoding to <strong>$encoding</strong>.
                         
                         If <strong>$encoding</strong> is omitted, <strong>mb_http_output()</strong> returns the current HTTP output
                         character encoding.

<comment>Return:</comment>
  <info>stringbool</info>  If <strong>$encoding</strong> is omitted, <strong>mb_http_output()</strong> returns the current HTTP output character
              encoding. Otherwise,  Întoarce valoarea <info>true</info> în cazul
              succesului sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>mb_internal_encoding()</strong>
   * <strong>mb_http_input()</strong>
   * <strong>mb_detect_order()</strong>


id: mb_internal_encoding
type: function
doc:
<comment>Description:</comment>
  Set/Get internal character encoding
  
  Set/Get the internal character encoding

<comment>Param:</comment>
  <info>stringnull</info>  <strong>$encoding</strong>  <strong>$encoding</strong> is the character encoding name  used for the HTTP input character
                         encoding conversion, HTTP output  character encoding conversion, and the
                         default character encoding  for string functions defined by the mbstring
                         module. You should notice that the internal encoding is totally different
                         from the one for multibyte regex.

<comment>Return:</comment>
  <info>stringbool</info>  If <strong>$encoding</strong> is set, then  Întoarce valoarea <info>true</info> în cazul
              succesului sau <info>false</info> în cazul eșecului. In this case, the character encoding for
              multibyte regex is NOT changed. If <strong>$encoding</strong> is omitted, then  the current character
              encoding name is returned.

<comment>See Also:</comment>
   * <strong>mb_http_input()</strong>
   * <strong>mb_http_output()</strong>
   * <strong>mb_detect_order()</strong>
   * <strong>mb_regex_encoding()</strong>


id: mb_language
type: function
doc:
<comment>Description:</comment>
  Set/Get current language
  
  Set/Get the current language.

<comment>Param:</comment>
  <info>stringnull</info>  <strong>$language</strong>  Used for encoding e-mail messages. The valid languages are listed in the
                         following table. <strong>mb_send_mail()</strong> uses this setting to encode e-mail.

<comment>Return:</comment>
  <info>stringbool</info>  If <strong>$language</strong> is set and <strong>$language</strong> is valid, it returns <info>true</info>. Otherwise, it returns
              <info>false</info>.  When <strong>$language</strong> is omitted or <info>null</info>, it returns the language name as a <info>string</info>.

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


id: mb_list_encodings
type: function
doc:
<comment>Description:</comment>
  Returns an array of all supported encodings
  
  Returns an array containing all supported encodings.

<comment>Return:</comment>
  <info>array</info>  Returns a numerically indexed array.


id: mb_ord
type: function
doc:
<comment>Description:</comment>
  Get code point of character
  
  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>stringnull</info>  <strong>$encoding</strong>  

<comment>Return:</comment>
  <info>intfalse</info>  Returns a code point of character sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>mb_chr()</strong>
   * <strong>ord()</strong>


id: mb_output_handler
type: function
doc:
<comment>Description:</comment>
  Callback function converts character encoding in output buffer
  
  <strong>mb_output_handler()</strong> is <strong>ob_start()</strong> callback function. <strong>mb_output_handler()</strong> converts characters in
  the output buffer from internal character encoding to HTTP output character encoding.

<comment>Param:</comment>
  <info>string</info>  <strong>$string</strong>  The contents of the output buffer.
  <info>int   </info>  <strong>$status</strong>  The status of the output buffer.

<comment>Return:</comment>
  <info>string</info>  The converted <info>string</info>.

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


id: mb_parse_str
type: function
doc:
<comment>Description:</comment>
  Parse GET/POST/COOKIE data and set global variable
  
  Parses GET/POST/COOKIE data and sets global variables. Since PHP does not provide raw POST/COOKIE
  data, it can only be used for GET data for now. It parses URL encoded data, detects encoding,
  converts coding to internal encoding and set values to the <strong>$result</strong> <info>array</info> or global variables.

<comment>Param:</comment>
  <info>string</info>  <strong>$string</strong>  The URL encoded data.
  <info>array </info>  <strong>$result</strong>  An <info>array</info> containing decoded and character encoded converted values.

<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>mb_detect_order()</strong>
   * <strong>mb_internal_encoding()</strong>


id: mb_preferred_mime_name
type: function
doc:
<comment>Description:</comment>
  Get MIME charset string
  
  Get a MIME charset <info>string</info> for a specific encoding.

<comment>Param:</comment>
  <info>string</info>  <strong>$encoding</strong>  The encoding being checked.

<comment>Return:</comment>
  <info>stringfalse</info>  The MIME <return>charset</return> <info>string</info> for character encoding <strong>$encoding</strong>, or <info>false</info> if no charset is
               preferred for the given <strong>$encoding</strong>.


id: mb_regex_encoding
type: function
doc:
<comment>Description:</comment>
  Set/Get character encoding for multibyte regex
  
  Set/Get character encoding for a multibyte regex.

<comment>Param:</comment>
  <info>stringnull</info>  <strong>$encoding</strong>  Parametrul <strong>$encoding</strong> reprezintă codificarea caracterelor.
                         Dacă el este omis, va fi utilizată valoarea internă a codificării
                         caracterelor.

<comment>Return:</comment>
  <info>stringbool</info>  If <strong>$encoding</strong> is set, then  Întoarce valoarea <info>true</info> în cazul
              succesului sau <info>false</info> în cazul eșecului.  In this case, the internal character encoding
              is NOT changed. If <strong>$encoding</strong> is omitted, then  the current character encoding name for
              a multibyte regex is returned.

<comment>See Also:</comment>
   * <strong>mb_internal_encoding()</strong>
   * <strong>mb_ereg()</strong>


id: mb_regex_set_options
type: function
doc:
<comment>Description:</comment>
  Set/Get the default options for mbregex functions
  
  Sets the default options described by <strong>$options</strong>  for multibyte regex functions.

<comment>Param:</comment>
  <info>stringnull</info>  <strong>$options</strong>  The options to set. This is a string where each  character is an option. To
                        set a mode, the mode  character must be the last one set, however there  can
                        only be set one mode but multiple options.

<comment>Return:</comment>
  <info>string</info>  The previous options. If <strong>$options</strong> is omitted or <info>null</info>,  it returns the <info>string</info> that
          describes the current options.

<comment>See Also:</comment>
   * <strong>mb_split()</strong>
   * <strong>mb_ereg()</strong>
   * <strong>mb_eregi()</strong>


id: mb_scrub
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>$string  </strong>  
  <info>stringnull</info>  <strong>$encoding</strong>  

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


id: mb_send_mail
type: function
doc:
<comment>Description:</comment>
  Send encoded mail
  
  Sends email. Headers and messages are converted and encoded according to the <strong>mb_language()</strong>
  setting. It's a wrapper function for <strong>mail()</strong>, so see also <strong>mail()</strong> for details.

<comment>Param:</comment>
  <info>string     </info>  <strong>$to                </strong>  The mail addresses being sent to. Multiple recipients may be
                                    specified by putting a comma between each address in <strong>$to</strong>.  This
                                    parameter is not automatically encoded.
  <info>string     </info>  <strong>$subject           </strong>  The subject of the mail.
  <info>string     </info>  <strong>$message           </strong>  The message of the mail.
  <info>arraystring</info>  <strong>$additional_headers</strong>  <info>String</info> or <info>array</info> to be inserted at the end of the email header.
                                    
                                    This is typically used to add extra headers (From, Cc, and Bcc).
                                    Multiple extra headers should be separated with a CRLF (\r\n).
                                    Validate parameter not to be injected unwanted headers by
                                    attackers.
                                    
                                    If an <info>array</info> is passed, its keys are the header names and its
                                    values are the respective header values.
                                    
                                    When sending mail, the mail must contain a <return>From</return> header. This can
                                    be set with the  <strong>$additional_headers</strong> parameter, or a default can
                                    be set in php.ini.
                                    
                                    Failing to do this will result in an error message similar to
                                    <return>Warning: mail(): "sendmail_from" not set in php.ini or custom
                                    "From:" header missing</return>. The <return>From</return> header sets also <return>Return-Path</return>
                                    under Windows.
                                    
                                    If messages are not received, try using a LF (\n) only. Some
                                    Unix mail transfer agents (most notably qmail) replace LF by
                                    CRLF automatically (which leads to doubling CR if CRLF is used).
                                    This should be a last resort, as it does not comply with RFC
                                    2822.
  <info>stringnull </info>  <strong>$additional_params </strong>  <strong>$additional_params</strong> is a MTA command line parameter. It is useful
                                    when setting the correct Return-Path header when using sendmail.
                                    
                                    This parameter is escaped by <strong>escapeshellcmd()</strong> internally to
                                    prevent command execution. <strong>escapeshellcmd()</strong> prevents command
                                    execution, but allows to add additional parameters. For security
                                    reason, this parameter should be validated.
                                    
                                    Since <strong>escapeshellcmd()</strong> is applied automatically, some characters
                                    that are allowed as email addresses by internet RFCs cannot be
                                    used. Programs that are required to use these characters <strong>mail()</strong>
                                    cannot be used.
                                    
                                    The user that the webserver runs as should be added as a trusted
                                    user to the sendmail configuration to prevent a 'X-Warning'
                                    header from being added to the message when the envelope sender
                                    (-f) is set using this method. For sendmail users, this file is
                                    /etc/mail/trusted-users.

<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>mail()</strong>
   * <strong>mb_encode_mimeheader()</strong>
   * <strong>mb_language()</strong>


id: mb_split
type: function
doc:
<comment>Description:</comment>
  Split multibyte string using regular expression
  
  Split a multibyte <strong>$string</strong> using regular expression <strong>$pattern</strong> and returns the result as an <info>array</info>.

<comment>Param:</comment>
  <info>string</info>  <strong>$pattern</strong>  The regular expression pattern.
  <info>string</info>  <strong>$string </strong>  The <info>string</info> being split.
  <info>int   </info>  <strong>$limit  </strong>  If optional parameter <strong>$limit</strong> is specified,  it will be split in <strong>$limit</strong> elements
                    as maximum.

<comment>Return:</comment>
  <info>arrayfalse</info>  The result as an <info>array</info>,  sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>mb_regex_encoding()</strong>
   * <strong>mb_ereg()</strong>


id: mb_str_split
type: function
doc:
<comment>Description:</comment>
  Given a multibyte string, return an array of its characters
  
  This function will return an array of strings, it is a version of <strong>str_split()</strong> with support for
  encodings of variable character size as well as fixed-size encodings of 1,2 or 4 byte characters.
  If the <strong>$length</strong> parameter is specified, the string is broken down into chunks of the specified
  length in characters (not bytes). The <strong>$encoding</strong> parameter can be optionally specified and it is
  good practice to do so.

<comment>Param:</comment>
  <info>string    </info>  <strong>$string  </strong>  The <info>string</info> to split into characters or chunks.
  <info>int       </info>  <strong>$length  </strong>  If specified, each element of the returned array will be composed of
                         multiple characters instead of a single character.
  <info>stringnull</info>  <strong>$encoding</strong>  Parametrul <strong>$encoding</strong> reprezintă codificarea caracterelor.
                         Dacă el este omis, va fi utilizată valoarea internă a codificării
                         caracterelor.
                         
                         A string specifying one of the supported encodings.

<comment>Return:</comment>
  <info>array</info>  <strong>mb_str_split()</strong> returns an array of strings.

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


id: mb_strcut
type: function
doc:
<comment>Description:</comment>
  Get part of string
  
  <strong>mb_strcut()</strong> extracts a substring from a string similarly to <strong>mb_substr()</strong>, but operates on bytes
  instead of characters. If the cut position happens to be between two bytes of a multi-byte
  character, the cut is performed starting from the first byte of that character. This is also the
  difference to the <strong>substr()</strong> function, which would simply cut the string between the bytes and thus
  result in a malformed byte sequence.

<comment>Param:</comment>
  <info>string    </info>  <strong>$string  </strong>  The <info>string</info> being cut.
  <info>int       </info>  <strong>$start   </strong>  If <strong>$start</strong> is non-negative, the returned string will start at the <strong>$start</strong>'th
                         byte position in <strong>$string</strong>, counting from zero. For instance, in the string
                         '<return>abcdef</return>', the byte at position <return>0</return> is '<return>a</return>', the byte at position <return>2</return> is '<return>c</return>', and
                         so forth.
                         
                         If <strong>$start</strong> is negative, the returned string will start at the <strong>$start</strong>'th byte
                         counting back from the end of <strong>$string</strong>. However, if the magnitude of a
                         negative <strong>$start</strong> is greater than the length of the string, the returned
                         portion will start from the beginning of <strong>$string</strong>.
  <info>intnull   </info>  <strong>$length  </strong>  Length in bytes. If omitted or <return>NULL</return> is passed, extract all bytes to the end
                         of the string.
                         
                         If <strong>$length</strong> is negative, the returned string will end at the <strong>$length</strong>'th byte
                         counting back from the end of <strong>$string</strong>. However, if the magnitude of a
                         negative <strong>$length</strong> is greater than the number of characters after the <strong>$start</strong>
                         position, an empty string will be returned.
  <info>stringnull</info>  <strong>$encoding</strong>  Parametrul <strong>$encoding</strong> reprezintă codificarea caracterelor.
                         Dacă el este omis, va fi utilizată valoarea internă a codificării
                         caracterelor.

<comment>Return:</comment>
  <info>string</info>  <strong>mb_strcut()</strong> returns the portion of <strong>$string</strong> specified by the <strong>$start</strong> and <strong>$length</strong> parameters.

<comment>See Also:</comment>
   * <strong>mb_substr()</strong>
   * <strong>mb_internal_encoding()</strong>


id: mb_strimwidth
type: function
doc:
<comment>Description:</comment>
  Get truncated string with specified width
  
  Truncates <info>string</info> <strong>$string</strong> to specified <strong>$width</strong>.

<comment>Param:</comment>
  <info>string    </info>  <strong>$string     </strong>  The <info>string</info> being decoded.
  <info>int       </info>  <strong>$start      </strong>  The start position offset. Number of characters from the beginning of
                            string (first character is 0), or if start is negative, number of
                            characters from the end of the string.
  <info>int       </info>  <strong>$width      </strong>  The width of the desired trim. Negative widths count from the end of the
                            string.
  <info>string    </info>  <strong>$trim_marker</strong>  A string that is added to the end of string  when string is truncated.
  <info>stringnull</info>  <strong>$encoding   </strong>  Parametrul <strong>$encoding</strong> reprezintă codificarea caracterelor.
                            Dacă el este omis, va fi utilizată valoarea internă a codificării
                            caracterelor.

<comment>Return:</comment>
  <info>string</info>  The truncated <info>string</info>. If <strong>$trim_marker</strong> is set, <strong>$trim_marker</strong> replaces the last chars to
          match the <strong>$width</strong>.

<comment>See Also:</comment>
   * <strong>mb_strwidth()</strong>
   * <strong>mb_internal_encoding()</strong>


id: mb_stripos
type: function
doc:
<comment>Description:</comment>
  Finds position of first occurrence of a string within another, case insensitive
  
  <strong>mb_stripos()</strong> returns the numeric position of the first occurrence of <strong>$needle</strong> in the <strong>$haystack</strong>
  string. Unlike <strong>mb_strpos()</strong>,  <strong>mb_stripos()</strong> is case-insensitive. If <strong>$needle</strong> is not found, it returns
  <info>false</info>.

<comment>Param:</comment>
  <info>string    </info>  <strong>$haystack</strong>  The string from which to get the position of the first occurrence of
                         <strong>$needle</strong>
  <info>string    </info>  <strong>$needle  </strong>  The string to find in <strong>$haystack</strong>
  <info>int       </info>  <strong>$offset  </strong>  The position in <strong>$haystack</strong> to start searching. A negative offset counts from
                         the end of the string.
  <info>stringnull</info>  <strong>$encoding</strong>  Character encoding name to use. If it is omitted, internal character
                         encoding is used.

<comment>Return:</comment>
  <info>intfalse</info>  Return the numeric position of the first occurrence of <strong>$needle</strong> in the <strong>$haystack</strong> string,
            or <info>false</info> if <strong>$needle</strong> is not found.

<comment>See Also:</comment>
   * <strong>stripos()</strong>
   * <strong>strpos()</strong>
   * <strong>mb_strpos()</strong>


id: mb_stristr
type: function
doc:
<comment>Description:</comment>
  Finds first occurrence of a string within another, case insensitive
  
  <strong>mb_stristr()</strong> finds the first occurrence of <strong>$needle</strong> in <strong>$haystack</strong> and returns the portion of
  <strong>$haystack</strong>. Unlike <strong>mb_strstr()</strong>,  <strong>mb_stristr()</strong> is case-insensitive. If <strong>$needle</strong> is not found, it
  returns <info>false</info>.

<comment>Param:</comment>
  <info>string    </info>  <strong>$haystack     </strong>  The string from which to get the first occurrence of <strong>$needle</strong>
  <info>string    </info>  <strong>$needle       </strong>  The string to find in <strong>$haystack</strong>
  <info>bool      </info>  <strong>$before_needle</strong>  Determines which portion of <strong>$haystack</strong> this function returns.  If set
                              to <info>true</info>, it returns all of  <strong>$haystack</strong> from the beginning to the first
                              occurrence of <strong>$needle</strong> (excluding needle). If set to <info>false</info>, it returns
                              all of <strong>$haystack</strong> from the first occurrence of <strong>$needle</strong> to the end
                              (including needle).
  <info>stringnull</info>  <strong>$encoding     </strong>  Character encoding name to use. If it is omitted, internal character
                              encoding is used.

<comment>Return:</comment>
  <info>stringfalse</info>  Returns the portion of <strong>$haystack</strong>, or <info>false</info> if <strong>$needle</strong> is not found.

<comment>See Also:</comment>
   * <strong>stristr()</strong>
   * <strong>strstr()</strong>
   * <strong>mb_strstr()</strong>


id: mb_strlen
type: function
doc:
<comment>Description:</comment>
  Get string length
  
  Gets the length of a <info>string</info>.

<comment>Param:</comment>
  <info>string    </info>  <strong>$string  </strong>  The <info>string</info> being checked for length.
  <info>stringnull</info>  <strong>$encoding</strong>  Parametrul <strong>$encoding</strong> reprezintă codificarea caracterelor.
                         Dacă el este omis, va fi utilizată valoarea internă a codificării
                         caracterelor.

<comment>Return:</comment>
  <info>int</info>  Returns the number of characters in <info>string</info> <strong>$string</strong> having character encoding <strong>$encoding</strong>. A
       multi-byte character is counted as 1.

<comment>See Also:</comment>
   * <strong>mb_internal_encoding()</strong>
   * <strong>grapheme_strlen()</strong>
   * <strong>iconv_strlen()</strong>
   * <strong>strlen()</strong>


id: mb_strpos
type: function
doc:
<comment>Description:</comment>
  Find position of first occurrence of string in a string
  
  Finds position of the first occurrence of a <info>string</info> in a <info>string</info>.
  
  Performs a multi-byte safe <strong>strpos()</strong> operation based on number of characters. The first character's
  position is 0, the second character position is 1, and so on.

<comment>Param:</comment>
  <info>string    </info>  <strong>$haystack</strong>  The <info>string</info> being checked.
  <info>string    </info>  <strong>$needle  </strong>  The string to find in <strong>$haystack</strong>. In contrast with <strong>strpos()</strong>, numeric values
                         are not applied as the ordinal value of a character.
  <info>int       </info>  <strong>$offset  </strong>  The search offset. If it is not specified, 0 is used. A negative offset
                         counts from the end of the string.
  <info>stringnull</info>  <strong>$encoding</strong>  Parametrul <strong>$encoding</strong> reprezintă codificarea caracterelor.
                         Dacă el este omis, va fi utilizată valoarea internă a codificării
                         caracterelor.

<comment>Return:</comment>
  <info>intfalse</info>  Returns the numeric position of the first occurrence of <strong>$needle</strong> in the <strong>$haystack</strong> <info>string</info>.
            If <strong>$needle</strong> is not found, it returns <info>false</info>.

<comment>See Also:</comment>
   * <strong>mb_internal_encoding()</strong>
   * <strong>strpos()</strong>


id: mb_strrchr
type: function
doc:
<comment>Description:</comment>
  Finds the last occurrence of a character in a string within another
  
  <strong>mb_strrchr()</strong> finds the last occurrence of <strong>$needle</strong> in <strong>$haystack</strong> and returns the portion of
  <strong>$haystack</strong>. If <strong>$needle</strong> is not found, it returns <info>false</info>.

<comment>Param:</comment>
  <info>string    </info>  <strong>$haystack     </strong>  The string from which to get the last occurrence of <strong>$needle</strong>
  <info>string    </info>  <strong>$needle       </strong>  The string to find in <strong>$haystack</strong>
  <info>bool      </info>  <strong>$before_needle</strong>  Determines which portion of <strong>$haystack</strong> this function returns.  If set
                              to <info>true</info>, it returns all of <strong>$haystack</strong> from the beginning to the last
                              occurrence of <strong>$needle</strong>. If set to <info>false</info>, it returns all of <strong>$haystack</strong>
                              from the last occurrence of <strong>$needle</strong> to the end,
  <info>stringnull</info>  <strong>$encoding     </strong>  Character encoding name to use. If it is omitted, internal character
                              encoding is used.

<comment>Return:</comment>
  <info>stringfalse</info>  Returns the portion of <strong>$haystack</strong>. or <info>false</info> if <strong>$needle</strong> is not found.

<comment>See Also:</comment>
   * <strong>strrchr()</strong>
   * <strong>mb_strstr()</strong>
   * <strong>mb_strrichr()</strong>


id: mb_strrichr
type: function
doc:
<comment>Description:</comment>
  Finds the last occurrence of a character in a string within another, case insensitive
  
  <strong>mb_strrichr()</strong> finds the last occurrence of <strong>$needle</strong> in <strong>$haystack</strong> and returns the portion of
  <strong>$haystack</strong>. Unlike <strong>mb_strrchr()</strong>, <strong>mb_strrichr()</strong> is case-insensitive. If <strong>$needle</strong> is not found, it
  returns <info>false</info>.

<comment>Param:</comment>
  <info>string    </info>  <strong>$haystack     </strong>  The string from which to get the last occurrence of <strong>$needle</strong>
  <info>string    </info>  <strong>$needle       </strong>  The string to find in <strong>$haystack</strong>
  <info>bool      </info>  <strong>$before_needle</strong>  Determines which portion of <strong>$haystack</strong> this function returns.  If set
                              to <info>true</info>, it returns all of <strong>$haystack</strong> from the beginning to the last
                              occurrence of <strong>$needle</strong>. If set to <info>false</info>, it returns all of <strong>$haystack</strong>
                              from the last occurrence of <strong>$needle</strong> to the end,
  <info>stringnull</info>  <strong>$encoding     </strong>  Character encoding name to use. If it is omitted, internal character
                              encoding is used.

<comment>Return:</comment>
  <info>stringfalse</info>  Returns the portion of <strong>$haystack</strong>. or <info>false</info> if <strong>$needle</strong> is not found.

<comment>See Also:</comment>
   * <strong>mb_stristr()</strong>
   * <strong>mb_strrchr()</strong>


id: mb_strripos
type: function
doc:
<comment>Description:</comment>
  Finds position of last occurrence of a string within another, case insensitive
  
  <strong>mb_strripos()</strong> performs multi-byte safe <strong>strripos()</strong> operation based on number of characters. <strong>$needle</strong>
  position is counted from the beginning of <strong>$haystack</strong>. First character's position is 0. Second
  character position is 1.  Unlike <strong>mb_strrpos()</strong>, <strong>mb_strripos()</strong> is case-insensitive.

<comment>Param:</comment>
  <info>string    </info>  <strong>$haystack</strong>  The string from which to get the position of the last occurrence of <strong>$needle</strong>
  <info>string    </info>  <strong>$needle  </strong>  The string to find in <strong>$haystack</strong>
  <info>int       </info>  <strong>$offset  </strong>  The position in <strong>$haystack</strong> to start searching
  <info>stringnull</info>  <strong>$encoding</strong>  Character encoding name to use. If it is omitted, internal character
                         encoding is used.

<comment>Return:</comment>
  <info>intfalse</info>  Return the numeric position of the last occurrence of <strong>$needle</strong> in the <strong>$haystack</strong> string,
            or <info>false</info> if <strong>$needle</strong> is not found.

<comment>See Also:</comment>
   * <strong>strripos()</strong>
   * <strong>strrpos()</strong>
   * <strong>mb_strrpos()</strong>


id: mb_strrpos
type: function
doc:
<comment>Description:</comment>
  Find position of last occurrence of a string in a string
  
  Performs a multibyte safe <strong>strrpos()</strong> operation based on the  number of characters. <strong>$needle</strong> position
  is counted from the beginning of <strong>$haystack</strong>. First character's position is 0. Second character
  position is 1.

<comment>Param:</comment>
  <info>string    </info>  <strong>$haystack</strong>  The <info>string</info> being checked, for the last occurrence of <strong>$needle</strong>
  <info>string    </info>  <strong>$needle  </strong>  The <info>string</info> to find in <strong>$haystack</strong>.
  <info>int       </info>  <strong>$offset  </strong>  May be specified to begin searching an arbitrary number of characters into
                         the <info>string</info>.  Negative values will stop searching at an arbitrary point
                         prior to the end of the <info>string</info>.
  <info>stringnull</info>  <strong>$encoding</strong>  Parametrul <strong>$encoding</strong> reprezintă codificarea caracterelor.
                         Dacă el este omis, va fi utilizată valoarea internă a codificării
                         caracterelor.

<comment>Return:</comment>
  <info>intfalse</info>  Returns the numeric position of the last occurrence of <strong>$needle</strong> in the <strong>$haystack</strong> <info>string</info>.
            If <strong>$needle</strong> is not found, it returns <info>false</info>.

<comment>See Also:</comment>
   * <strong>mb_strpos()</strong>
   * <strong>mb_internal_encoding()</strong>
   * <strong>strrpos()</strong>


id: mb_strstr
type: function
doc:
<comment>Description:</comment>
  Finds first occurrence of a string within another
  
  <strong>mb_strstr()</strong> finds the first occurrence of <strong>$needle</strong> in <strong>$haystack</strong> and returns the portion of
  <strong>$haystack</strong>. If <strong>$needle</strong> is not found, it returns <info>false</info>.

<comment>Param:</comment>
  <info>string    </info>  <strong>$haystack     </strong>  The string from which to get the first occurrence of <strong>$needle</strong>
  <info>string    </info>  <strong>$needle       </strong>  The string to find in <strong>$haystack</strong>
  <info>bool      </info>  <strong>$before_needle</strong>  Determines which portion of <strong>$haystack</strong> this function returns.  If set
                              to <info>true</info>, it returns all of  <strong>$haystack</strong> from the beginning to the first
                              occurrence of <strong>$needle</strong> (excluding needle). If set to <info>false</info>, it returns
                              all of <strong>$haystack</strong> from the first occurrence of <strong>$needle</strong> to the end
                              (including needle).
  <info>stringnull</info>  <strong>$encoding     </strong>  Character encoding name to use. If it is omitted, internal character
                              encoding is used.

<comment>Return:</comment>
  <info>stringfalse</info>  Returns the portion of <strong>$haystack</strong>, or <info>false</info> if <strong>$needle</strong> is not found.

<comment>See Also:</comment>
   * <strong>stristr()</strong>
   * <strong>strstr()</strong>
   * <strong>mb_stristr()</strong>


id: mb_strtolower
type: function
doc:
<comment>Description:</comment>
  Make a string lowercase
  
  Returns <strong>$string</strong> with all alphabetic characters converted to lowercase.

<comment>Param:</comment>
  <info>string    </info>  <strong>$string  </strong>  The <info>string</info> being lowercased.
  <info>stringnull</info>  <strong>$encoding</strong>  Parametrul <strong>$encoding</strong> reprezintă codificarea caracterelor.
                         Dacă el este omis, va fi utilizată valoarea internă a codificării
                         caracterelor.

<comment>Return:</comment>
  <info>string</info>  <strong>$string</strong> with all alphabetic characters converted to lowercase.

<comment>See Also:</comment>
   * <strong>mb_strtoupper()</strong>
   * <strong>mb_convert_case()</strong>
   * <strong>strtolower()</strong>


id: mb_strtoupper
type: function
doc:
<comment>Description:</comment>
  Make a string uppercase
  
  Returns <strong>$string</strong> with all alphabetic characters converted to uppercase.

<comment>Param:</comment>
  <info>string    </info>  <strong>$string  </strong>  The <info>string</info> being uppercased.
  <info>stringnull</info>  <strong>$encoding</strong>  Parametrul <strong>$encoding</strong> reprezintă codificarea caracterelor.
                         Dacă el este omis, va fi utilizată valoarea internă a codificării
                         caracterelor.

<comment>Return:</comment>
  <info>string</info>  <strong>$string</strong> with all alphabetic characters converted to uppercase.

<comment>See Also:</comment>
   * <strong>mb_strtolower()</strong>
   * <strong>mb_convert_case()</strong>
   * <strong>strtoupper()</strong>


id: mb_strwidth
type: function
doc:
<comment>Description:</comment>
  Return width of string
  
  Returns the width of <info>string</info> <strong>$string</strong>, where halfwidth characters count as <return>1</return>, and fullwidth
  characters count as <return>2</return>.
  
  The fullwidth characters are: <return>U+1100</return>-<return>U+115F</return>, <return>U+11A3</return>-<return>U+11A7</return>, <return>U+11FA</return>-<return>U+11FF</return>, <return>U+2329</return>-<return>U+232A</return>,
  <return>U+2E80</return>-<return>U+2E99</return>, <return>U+2E9B</return>-<return>U+2EF3</return>, <return>U+2F00</return>-<return>U+2FD5</return>, <return>U+2FF0</return>-<return>U+2FFB</return>, <return>U+3000</return>-<return>U+303E</return>, <return>U+3041</return>-<return>U+3096</return>,
  <return>U+3099</return>-<return>U+30FF</return>, <return>U+3105</return>-<return>U+312D</return>, <return>U+3131</return>-<return>U+318E</return>, <return>U+3190</return>-<return>U+31BA</return>, <return>U+31C0</return>-<return>U+31E3</return>, <return>U+31F0</return>-<return>U+321E</return>,
  <return>U+3220</return>-<return>U+3247</return>, <return>U+3250</return>-<return>U+32FE</return>, <return>U+3300</return>-<return>U+4DBF</return>, <return>U+4E00</return>-<return>U+A48C</return>, <return>U+A490</return>-<return>U+A4C6</return>, <return>U+A960</return>-<return>U+A97C</return>,
  <return>U+AC00</return>-<return>U+D7A3</return>, <return>U+D7B0</return>-<return>U+D7C6</return>, <return>U+D7CB</return>-<return>U+D7FB</return>, <return>U+F900</return>-<return>U+FAFF</return>, <return>U+FE10</return>-<return>U+FE19</return>, <return>U+FE30</return>-<return>U+FE52</return>,
  <return>U+FE54</return>-<return>U+FE66</return>, <return>U+FE68</return>-<return>U+FE6B</return>, <return>U+FF01</return>-<return>U+FF60</return>, <return>U+FFE0</return>-<return>U+FFE6</return>, <return>U+1B000</return>-<return>U+1B001</return>, <return>U+1F200</return>-<return>U+1F202</return>,
  <return>U+1F210</return>-<return>U+1F23A</return>, <return>U+1F240</return>-<return>U+1F248</return>, <return>U+1F250</return>-<return>U+1F251</return>, <return>U+20000</return>-<return>U+2FFFD</return>, <return>U+30000</return>-<return>U+3FFFD</return>. All other
  characters are halfwidth characters.

<comment>Param:</comment>
  <info>string    </info>  <strong>$string  </strong>  The <info>string</info> being decoded.
  <info>stringnull</info>  <strong>$encoding</strong>  Parametrul <strong>$encoding</strong> reprezintă codificarea caracterelor.
                         Dacă el este omis, va fi utilizată valoarea internă a codificării
                         caracterelor.

<comment>Return:</comment>
  <info>int</info>  The width of <info>string</info> <strong>$string</strong>.

<comment>See Also:</comment>
   * <strong>mb_strimwidth()</strong>
   * <strong>mb_internal_encoding()</strong>


id: mb_substitute_character
type: function
doc:
<comment>Description:</comment>
  Set/Get substitution character
  
  Specifies a substitution character when input character encoding is invalid or character code does
  not exist in output character encoding. Invalid characters may be substituted <return>"none"</return> (no output),
  <info>string</info> or <info>int</info> value (Unicode character code value).
  
  This setting affects <strong>mb_convert_encoding()</strong>, <strong>mb_convert_variables()</strong>, <strong>mb_output_handler()</strong>, and
  <strong>mb_send_mail()</strong>.

<comment>Param:</comment>
  <info>stringintnull</info>  <strong>$substitute_character</strong>  Specify the Unicode value as an <info>int</info>,  or as one of the
                                        following <info>string</info>s: <return>"none"</return>: no output <return>"long"</return>: Output
                                        character code value (Example: <return>U+3000</return>, <return>JIS+7E7E</return>) <return>"entity"</return>:
                                        Output character entity (Example: <return>&#x200;</return>)
                                        
                                        <return>"none"</return>: no output
                                        
                                        <return>"long"</return>: Output character code value (Example: <return>U+3000</return>,
                                        <return>JIS+7E7E</return>)
                                        
                                        <return>"entity"</return>: Output character entity (Example: <return>&#x200;</return>)

<comment>Return:</comment>
  <info>stringintbool</info>  If <strong>$substitute_character</strong> is set, it returns <info>true</info> for success, otherwise returns
                 <info>false</info>.  If <strong>$substitute_character</strong> is not set, it returns the current setting.


id: mb_substr
type: function
doc:
<comment>Description:</comment>
  Get part of string
  
  Performs a multi-byte safe <strong>substr()</strong> operation based on number of characters. Position is counted
  from the beginning of <strong>$string</strong>. First character's position is 0. Second character position is 1,
  and so on.

<comment>Param:</comment>
  <info>string    </info>  <strong>$string  </strong>  The <info>string</info> to extract the substring from.
  <info>int       </info>  <strong>$start   </strong>  If <strong>$start</strong> is non-negative, the returned string will start at the <strong>$start</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>$start</strong> is negative, the returned string will start at the <strong>$start</strong>'th
                         character from the end of <strong>$string</strong>.
  <info>intnull   </info>  <strong>$length  </strong>  Maximum number of characters to use from <strong>$string</strong>. If omitted or <return>NULL</return> is
                         passed, extract all characters to the end of the string.
  <info>stringnull</info>  <strong>$encoding</strong>  Parametrul <strong>$encoding</strong> reprezintă codificarea caracterelor.
                         Dacă el este omis, va fi utilizată valoarea internă a codificării
                         caracterelor.

<comment>Return:</comment>
  <info>string</info>  <strong>mb_substr()</strong> returns the portion of <strong>$string</strong> specified by the <strong>$start</strong> and <strong>$length</strong> parameters.

<comment>See Also:</comment>
   * <strong>mb_strcut()</strong>
   * <strong>mb_internal_encoding()</strong>


id: mb_substr_count
type: function
doc:
<comment>Description:</comment>
  Count the number of substring occurrences
  
  Counts the number of times the <strong>$needle</strong> substring occurs in the <strong>$haystack</strong> <info>string</info>.

<comment>Param:</comment>
  <info>string    </info>  <strong>$haystack</strong>  The <info>string</info> being checked.
  <info>string    </info>  <strong>$needle  </strong>  The <info>string</info> being found.
  <info>stringnull</info>  <strong>$encoding</strong>  Parametrul <strong>$encoding</strong> reprezintă codificarea caracterelor.
                         Dacă el este omis, va fi utilizată valoarea internă a codificării
                         caracterelor.

<comment>Return:</comment>
  <info>int</info>  The number of times the <strong>$needle</strong> substring occurs in the <strong>$haystack</strong> <info>string</info>.

<comment>See Also:</comment>
   * <strong>mb_strpos()</strong>
   * <strong>mb_substr()</strong>
   * <strong>substr_count()</strong>


id: mcrypt_cbc
type: function
doc:
<comment>Description:</comment>
  Encrypts/decrypts data in CBC mode
  
  The first prototype is when linked against libmcrypt 2.2.x, the second when linked against
  libmcrypt 2.4.x or higher. The <strong>$mode</strong> should be either <info>MCRYPT_ENCRYPT</info> or <info>MCRYPT_DECRYPT</info>.

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


id: mcrypt_cfb
type: function
doc:
<comment>Description:</comment>
  Encrypts/decrypts data in CFB mode
  
  The first prototype is when linked against libmcrypt 2.2.x, the second when linked against
  libmcrypt 2.4.x or higher. The <strong>$mode</strong> should be either <info>MCRYPT_ENCRYPT</info> or <info>MCRYPT_DECRYPT</info>.

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


id: mcrypt_create_iv
type: function
doc:
<comment>Description:</comment>
  Creates an initialization vector (IV) from a random source
  
  Creates an initialization vector (IV) from a random source.
  
  The IV is only meant to give an alternative seed to the encryption routines. This IV does not need
  to be secret at all, though it can be desirable. You even can send it along with your ciphertext
  without losing security.

<comment>Param:</comment>
  <info>int</info>  <strong>$size  </strong>  The size of the IV.
  <info>int</info>  <strong>$source</strong>  The source of the IV. The source can be <info>MCRYPT_RAND</info> (system random number
                generator), <info>MCRYPT_DEV_RANDOM</info> (read data from /dev/random) and <info>MCRYPT_DEV_URANDOM</info>
                (read data from /dev/urandom). Prior to 5.3.0, <info>MCRYPT_RAND</info> was the only one
                supported on Windows.
                
                Note that the default value of this parameter was <info>MCRYPT_DEV_RANDOM</info> prior to PHP
                5.6.0.
                
                Note that <info>MCRYPT_DEV_RANDOM</info> may block until more entropy is available.

<comment>Return:</comment>
  <info>string</info>  Returns the initialization vector, or <info>false</info> on error.

<comment>See Also:</comment>
   * http://www.ciphersbyritter.com/GLOSSARY.HTM#IV
   * http://www.quadibloc.com/crypto/co0409.htm
   * Chapter 9.3 of Applied Cryptography by Schneier (ISBN 0-471-11709-9)
   * <strong>random_bytes()</strong>


id: mcrypt_decrypt
type: function
doc:
<comment>Description:</comment>
  Decrypts crypttext with given parameters
  
  Decrypts the <strong>$data</strong> and returns the unencrypted data.

<comment>Param:</comment>
  <info>string</info>  <strong>$cipher</strong>  Una din constantele <info>MCRYPT_ciphername</info> sau denumirea algoritmului ca șir de
                   caractere.
  <info>string</info>  <strong>$key   </strong>  The key with which the data was encrypted. If the provided key size is not
                   supported by the cipher, the function will emit a warning and return <info>false</info>
  <info>string</info>  <strong>$data  </strong>  The data that will be decrypted with the given <strong>$cipher</strong> and <strong>$mode</strong>. If the size of
                   the data is not n * blocksize, the data will be padded with '<return>\0</return>'.
  <info>string</info>  <strong>$mode  </strong>  Una din constantele <info>MCRYPT_MODE_modename</info> sau unul din
                   șirurile de caractere: "ecb", "cbc", "cfb", "ofb", "nofb" sau "stream".
  <info>string</info>  <strong>$iv    </strong>  Utilizat pentru inițializare în modurile CBC, CFB, OFB și în unii algoritmi în
                   modul STREAM. Dacă dimensiunea IV furnizat nu este susținută de modul
                   înlănțuirii,
                   sau dacă nu a fost furnizat un IV, însă modul de înlănțuire îl necesită, funcția
                   va emite o avertizare și va întoarce <info>false</info>.

<comment>Return:</comment>
  <info>stringfalse</info>  Returns the decrypted data as a string  sau <info>false</info> în cazul eșecului.

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


id: mcrypt_ecb
type: function
doc:
<comment>Description:</comment>
  Deprecated: Encrypts/decrypts data in ECB mode
  
  The first prototype is when linked against libmcrypt 2.2.x, the second when linked against
  libmcrypt 2.4.x or higher. The <strong>$mode</strong> should be either <info>MCRYPT_ENCRYPT</info> or <info>MCRYPT_DECRYPT</info>.

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


id: mcrypt_enc_get_algorithms_name
type: function
doc:
<comment>Description:</comment>
  Returns the name of the opened algorithm
  
  This function returns the name of the algorithm.

<comment>Param:</comment>
  <info>resource</info>  <strong>$td</strong>  The encryption descriptor.

<comment>Return:</comment>
  <info>string</info>  Returns the name of the opened algorithm as a string.


id: mcrypt_enc_get_block_size
type: function
doc:
<comment>Description:</comment>
  Returns the blocksize of the opened algorithm
  
  Gets the blocksize of the opened algorithm.

<comment>Param:</comment>
  <info>resource</info>  <strong>$td</strong>  The encryption descriptor.

<comment>Return:</comment>
  <info>int</info>  Returns the block size of the specified algorithm in bytes.


id: mcrypt_enc_get_iv_size
type: function
doc:
<comment>Description:</comment>
  Returns the size of the IV of the opened algorithm
  
  This function returns the size of the IV of the algorithm specified by the encryption descriptor
  in bytes. An IV is used in cbc, cfb and ofb modes, and in some algorithms in stream mode.

<comment>Param:</comment>
  <info>resource</info>  <strong>$td</strong>  The encryption descriptor.

<comment>Return:</comment>
  <info>int</info>  Returns the size of the IV, or 0 if the IV is ignored by the algorithm.


id: mcrypt_enc_get_key_size
type: function
doc:
<comment>Description:</comment>
  Returns the maximum supported keysize of the opened mode
  
  Gets the maximum supported key size of the algorithm in bytes.

<comment>Param:</comment>
  <info>resource</info>  <strong>$td</strong>  The encryption descriptor.

<comment>Return:</comment>
  <info>int</info>  Returns the maximum supported key size of the algorithm in bytes.


id: mcrypt_enc_get_modes_name
type: function
doc:
<comment>Description:</comment>
  Returns the name of the opened mode
  
  This function returns the name of the mode.

<comment>Param:</comment>
  <info>resource</info>  <strong>$td</strong>  The encryption descriptor.

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


id: mcrypt_enc_get_supported_key_sizes
type: function
doc:
<comment>Description:</comment>
  Returns an array with the supported keysizes of the opened algorithm
  
  Gets the supported key sizes of the opened algorithm.

<comment>Param:</comment>
  <info>resource</info>  <strong>$td</strong>  The encryption descriptor.

<comment>Return:</comment>
  <info>array</info>  Returns an array with the key sizes supported by the algorithm specified by the encryption
         descriptor. If it returns an empty array then all key sizes between 1 and
         <strong>mcrypt_enc_get_key_size()</strong> are supported by the algorithm.


id: mcrypt_enc_is_block_algorithm
type: function
doc:
<comment>Description:</comment>
  Checks whether the algorithm of the opened mode is a block algorithm
  
  Tells whether the algorithm of the opened mode is a block algorithm.

<comment>Param:</comment>
  <info>resource</info>  <strong>$td</strong>  The encryption descriptor.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if the algorithm is a block algorithm or <info>false</info> if it is a stream one.


id: mcrypt_enc_is_block_algorithm_mode
type: function
doc:
<comment>Description:</comment>
  Checks whether the encryption of the opened mode works on blocks
  
  Tells whether the algorithm of the opened mode works on blocks (e.g. <info>false</info> for stream, and <info>true</info>
  for cbc, cfb, ofb)..

<comment>Param:</comment>
  <info>resource</info>  <strong>$td</strong>  The encryption descriptor.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if the mode is for use with block algorithms, otherwise it returns <info>false</info>.


id: mcrypt_enc_is_block_mode
type: function
doc:
<comment>Description:</comment>
  Checks whether the opened mode outputs blocks
  
  Tells whether the opened mode outputs blocks (e.g. <info>true</info> for cbc and ecb, and <info>false</info> for cfb and
  stream).

<comment>Param:</comment>
  <info>resource</info>  <strong>$td</strong>  The encryption descriptor.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if the mode outputs blocks of bytes, or <info>false</info> if it outputs just bytes.


id: mcrypt_enc_self_test
type: function
doc:
<comment>Description:</comment>
  Runs a self test on the opened module
  
  This function runs the self test on the algorithm specified by the descriptor <strong>$td</strong>.

<comment>Param:</comment>
  <info>resource</info>  <strong>$td</strong>  The encryption descriptor.

<comment>Return:</comment>
  <info>int</info>  Returns <return>0</return> on success and a negative <info>int</info> on failure.


id: mcrypt_encrypt
type: function
doc:
<comment>Description:</comment>
  Encrypts plaintext with given parameters
  
  Encrypts the data and returns it.

<comment>Param:</comment>
  <info>string</info>  <strong>$cipher</strong>  Una din constantele <info>MCRYPT_ciphername</info> sau denumirea algoritmului ca șir de
                   caractere.
  <info>string</info>  <strong>$key   </strong>  The key with which the data will be encrypted. If the provided key size is not
                   supported by the cipher, the function will emit a warning and return <info>false</info>
  <info>string</info>  <strong>$data  </strong>  The data that will be encrypted with the given <strong>$cipher</strong> and <strong>$mode</strong>. If the size of
                   the data is not n * blocksize, the data will be padded with '<return>\0</return>'.
                   
                   The returned crypttext can be larger than the size of the data that was given by
                   <strong>$data</strong>.
  <info>string</info>  <strong>$mode  </strong>  Una din constantele <info>MCRYPT_MODE_modename</info> sau unul din
                   șirurile de caractere: "ecb", "cbc", "cfb", "ofb", "nofb" sau "stream".
  <info>string</info>  <strong>$iv    </strong>  Utilizat pentru inițializare în modurile CBC, CFB, OFB și în unii algoritmi în
                   modul STREAM. Dacă dimensiunea IV furnizat nu este susținută de modul
                   înlănțuirii,
                   sau dacă nu a fost furnizat un IV, însă modul de înlănțuire îl necesită, funcția
                   va emite o avertizare și va întoarce <info>false</info>.

<comment>Return:</comment>
  <info>stringfalse</info>  Returns the encrypted data as a string  sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>mcrypt_decrypt()</strong>
   * <strong>mcrypt_module_open()</strong>


id: mcrypt_generic
type: function
doc:
<comment>Description:</comment>
  This function encrypts data
  
  This function encrypts data. The data is padded with "<return>\0</return>" to make sure the length of the data is n
  * blocksize. This function returns the encrypted data. Note that the length of the returned string
  can in fact be longer than the input, due to the padding of the data.
  
  If you want to store the encrypted data in a database make sure to store the entire string as
  returned by mcrypt_generic, or the string will not entirely decrypt properly.  If your original
  string is 10 characters long and the block size is 8 (use <strong>mcrypt_enc_get_block_size()</strong> to determine
  the blocksize), you would need at least 16 characters in your database field. Note the string
  returned by <strong>mdecrypt_generic()</strong> will be 16 characters as well...use rtrim($str, "\0") to remove the
  padding.
  
  If you are for example storing the data in a MySQL database remember that varchar fields
  automatically have trailing spaces removed during insertion. As encrypted data can end in a space
  (ASCII 32), the data will be damaged by this removal.  Store data in a tinyblob/tinytext (or
  larger) field instead.

<comment>Param:</comment>
  <info>resource</info>  <strong>$td  </strong>  The encryption descriptor.
                   
                   The encryption handle should always be initialized with <strong>mcrypt_generic_init()</strong>
                   with a key and an IV before calling this function. Where the encryption is done,
                   you should free the encryption buffers by calling <strong>mcrypt_generic_deinit()</strong>. See
                   <strong>mcrypt_module_open()</strong> for an example.
  <info>string  </info>  <strong>$data</strong>  The data to encrypt.

<comment>Return:</comment>
  <info>string</info>  Returns the encrypted data.

<comment>See Also:</comment>
   * <strong>mdecrypt_generic()</strong>
   * <strong>mcrypt_generic_init()</strong>
   * <strong>mcrypt_generic_deinit()</strong>


id: mcrypt_generic_deinit
type: function
doc:
<comment>Description:</comment>
  This function deinitializes an encryption module
  
  This function terminates encryption specified by the encryption descriptor (<strong>$td</strong>). It clears all
  buffers, but does not close the module.  You need to call <strong>mcrypt_module_close()</strong> yourself. (But PHP
  does this for you at the end of the script.)

<comment>Param:</comment>
  <info>resource</info>  <strong>$td</strong>  The encryption descriptor.

<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>mcrypt_module_open()</strong>
   * <strong>mcrypt_generic_init()</strong>


id: mcrypt_generic_end
type: function
doc:
<comment>Description:</comment>
  This function terminates encryption
  
  <strong>mcrypt_generic_deinit()</strong> should be used instead of this function, as it can cause crashes when used
  with <strong>mcrypt_module_close()</strong> due to multiple buffer frees.
  
  <strong>mcrypt_generic_deinit()</strong> should be used instead of this function, as it can cause crashes when used
  with <strong>mcrypt_module_close()</strong> due to multiple buffer frees.
  
  This function terminates encryption specified by the encryption descriptor (<strong>$td</strong>). Actually it
  clears all buffers, and closes all the modules used. Returns <info>false</info> on error, or <info>true</info> on success.

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


id: mcrypt_generic_init
type: function
doc:
<comment>Description:</comment>
  This function initializes all buffers needed for encryption
  
  You need to call this function before every call to <strong>mcrypt_generic()</strong> or <strong>mdecrypt_generic()</strong>.

<comment>Param:</comment>
  <info>resource</info>  <strong>$td </strong>  The encryption descriptor.
  <info>string  </info>  <strong>$key</strong>  The maximum length of the key should be the one obtained by calling
                  <strong>mcrypt_enc_get_key_size()</strong> and every value smaller than this is legal.
  <info>string  </info>  <strong>$iv </strong>  The IV should normally have the size of the algorithms block size, but you must
                  obtain the size by calling <strong>mcrypt_enc_get_iv_size()</strong>. IV is ignored in ECB. IV MUST
                  exist in CFB, CBC, STREAM, nOFB and OFB modes. It needs to be random and unique
                  (but not secret). The same IV must be used for encryption/decryption. If you do
                  not want to use it you should set it to zeros, but this is not recommended.

<comment>Return:</comment>
  <info>int</info>  The function returns a negative value on error: -3 when the key length was incorrect, -4 when
       there was a memory allocation problem and any other return value is an unknown error. If an
       error occurs a warning will be displayed accordingly. <info>false</info> is returned if incorrect
       parameters were passed.

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


id: mcrypt_get_block_size
type: function
doc:
<comment>Description:</comment>
  Gets the block size of the specified cipher
  
  The first prototype is when linked against libmcrypt 2.2.x, the second when linked against
  libmcrypt 2.4.x or 2.5.x.
  
  <strong>mcrypt_get_block_size()</strong> is used to get the size of a block of the specified <strong>$cipher</strong> (in
  combination with an encryption mode).
  
  It is more useful to use the <strong>mcrypt_enc_get_block_size()</strong> function as this uses the resource
  returned by <strong>mcrypt_module_open()</strong>.

<comment>Param:</comment>
  <info>int   </info>  <strong>$cipher</strong>  Una din constantele <info>MCRYPT_ciphername</info> sau denumirea algoritmului ca șir de
                   caractere.
  <info>string</info>  <strong>$mode  </strong>  Una din constantele <info>MCRYPT_MODE_modename</info> sau unul din
                   șirurile de caractere: "ecb", "cbc", "cfb", "ofb", "nofb" sau "stream".

<comment>Return:</comment>
  <info>intfalse</info>  Returns the algorithm block size in bytes  sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>mcrypt_get_key_size()</strong>
   * <strong>mcrypt_enc_get_block_size()</strong>
   * <strong>mcrypt_encrypt()</strong>


id: mcrypt_get_cipher_name
type: function
doc:
<comment>Description:</comment>
  Gets the name of the specified cipher
  
  <strong>mcrypt_get_cipher_name()</strong> is used to get the name of the specified cipher.
  
  <strong>mcrypt_get_cipher_name()</strong> takes the cipher number as an argument (libmcrypt 2.2.x) or takes the
  cipher name as an argument (libmcrypt 2.4.x or higher) and returns the name of the cipher or
  <info>false</info>, if the cipher does not exist.

<comment>Param:</comment>
  <info>int</info>  <strong>$cipher</strong>  Una din constantele <info>MCRYPT_ciphername</info> sau denumirea algoritmului ca șir de
                caractere.

<comment>Return:</comment>
  <info>string</info>  This function returns the name of the cipher or <info>false</info> if the cipher does not exist.


id: mcrypt_get_iv_size
type: function
doc:
<comment>Description:</comment>
  Returns the size of the IV belonging to a specific cipher/mode combination
  
  Gets the size of the IV belonging to a specific  <strong>$cipher</strong>/<strong>$mode</strong> combination.
  
  It is more useful to use the <strong>mcrypt_enc_get_iv_size()</strong> function as this uses the resource returned
  by <strong>mcrypt_module_open()</strong>.

<comment>Param:</comment>
  <info>string</info>  <strong>$cipher</strong>  Una din constantele <info>MCRYPT_ciphername</info> sau denumirea algoritmului ca șir de
                   caractere.
  <info>string</info>  <strong>$mode  </strong>  Una din constantele <info>MCRYPT_MODE_modename</info> sau unul din
                   șirurile de caractere: "ecb", "cbc", "cfb", "ofb", "nofb" sau "stream".
                   
                   The IV is ignored in ECB mode as this mode does not require it. You will need to
                   have the same IV (think: starting point) both at encryption and decryption
                   stages, otherwise your encryption will fail.

<comment>Return:</comment>
  <info>int</info>  Returns the size of the Initialization Vector (IV) in bytes. On error the function returns
       <info>false</info>. If the IV is ignored in the specified cipher/mode combination zero is returned.

<comment>See Also:</comment>
   * <strong>mcrypt_get_block_size()</strong>
   * <strong>mcrypt_enc_get_iv_size()</strong>
   * <strong>mcrypt_create_iv()</strong>


id: mcrypt_get_key_size
type: function
doc:
<comment>Description:</comment>
  Gets the key size of the specified cipher
  
  The first prototype is when linked against libmcrypt 2.2.x, the second when linked against
  libmcrypt 2.4.x or 2.5.x.
  
  <strong>mcrypt_get_key_size()</strong> is used to get the size of a key of the specified <strong>$cipher</strong> (in combination
  with an encryption mode).
  
  It is more useful to use the <strong>mcrypt_enc_get_key_size()</strong> function as this uses the resource returned
  by <strong>mcrypt_module_open()</strong>.

<comment>Param:</comment>
  <info>int   </info>  <strong>$cipher</strong>  Una din constantele <info>MCRYPT_ciphername</info> sau denumirea algoritmului ca șir de
                   caractere.
  <info>string</info>  <strong>$mode  </strong>  Una din constantele <info>MCRYPT_MODE_modename</info> sau unul din
                   șirurile de caractere: "ecb", "cbc", "cfb", "ofb", "nofb" sau "stream".

<comment>Return:</comment>
  <info>intfalse</info>  Returns the maximum supported key size of the algorithm in bytes sau <info>false</info> în cazul
            eșecului.

<comment>See Also:</comment>
   * <strong>mcrypt_get_block_size()</strong>
   * <strong>mcrypt_enc_get_key_size()</strong>
   * <strong>mcrypt_encrypt()</strong>


id: mcrypt_list_algorithms
type: function
doc:
<comment>Description:</comment>
  Gets an array of all supported ciphers
  
  Gets the list of all supported algorithms in the <strong>$lib_dir</strong> parameter.

<comment>Param:</comment>
  <info>string</info>  <strong>$lib_dir</strong>  Specifies the directory where all algorithms are located. If not specified, the
                    value of the <return>mcrypt.algorithms_dir</return> php.ini directive is used.

<comment>Return:</comment>
  <info>array</info>  Returns an array with all the supported algorithms.


id: mcrypt_list_modes
type: function
doc:
<comment>Description:</comment>
  Gets an array of all supported modes
  
  Gets the list of all supported modes in the <strong>$lib_dir</strong> parameter.

<comment>Param:</comment>
  <info>string</info>  <strong>$lib_dir</strong>  Specifies the directory where all modes are located. If not specified, the value
                    of the <return>mcrypt.modes_dir</return> php.ini directive is used.

<comment>Return:</comment>
  <info>array</info>  Returns an array with all the supported modes.


id: mcrypt_module_close
type: function
doc:
<comment>Description:</comment>
  Closes the mcrypt module
  
  Closes the specified encryption handle.

<comment>Param:</comment>
  <info>resource</info>  <strong>$td</strong>  The encryption descriptor.

<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>mcrypt_module_open()</strong>


id: mcrypt_module_get_algo_block_size
type: function
doc:
<comment>Description:</comment>
  Returns the blocksize of the specified algorithm
  
  Gets the blocksize of the specified algorithm.

<comment>Param:</comment>
  <info>string</info>  <strong>$algorithm</strong>  The algorithm name.
  <info>string</info>  <strong>$lib_dir  </strong>  This optional parameter can contain the location where the mode module is on
                      the system.

<comment>Return:</comment>
  <info>int</info>  Returns the block size of the algorithm specified in bytes.


id: mcrypt_module_get_algo_key_size
type: function
doc:
<comment>Description:</comment>
  Returns the maximum supported keysize of the opened mode
  
  Gets the maximum supported keysize of the opened mode.

<comment>Param:</comment>
  <info>string</info>  <strong>$algorithm</strong>  The algorithm name.
  <info>string</info>  <strong>$lib_dir  </strong>  This optional parameter can contain the location where the mode module is on
                      the system.

<comment>Return:</comment>
  <info>int</info>  This function returns the maximum supported key size of the algorithm specified in bytes.


id: mcrypt_module_get_supported_key_sizes
type: function
doc:
<comment>Description:</comment>
  Returns an array with the supported keysizes of the opened algorithm
  
  Returns an array with the key sizes supported by the specified algorithm. If it returns an empty
  array then all key sizes between 1 and <strong>mcrypt_module_get_algo_key_size()</strong> are supported by the
  algorithm.

<comment>Param:</comment>
  <info>string</info>  <strong>$algorithm</strong>  The algorithm to be used.
  <info>string</info>  <strong>$lib_dir  </strong>  The optional <strong>$lib_dir</strong> parameter can contain the location where the algorithm
                      module is on the system.

<comment>Return:</comment>
  <info>array</info>  Returns an array with the key sizes supported by the specified algorithm. If it returns an
         empty array then all key sizes between 1 and <strong>mcrypt_module_get_algo_key_size()</strong> are
         supported by the algorithm.

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


id: mcrypt_module_is_block_algorithm
type: function
doc:
<comment>Description:</comment>
  This function checks whether the specified algorithm is a block algorithm
  
  This function returns <info>true</info> if the specified algorithm is a block algorithm, or <info>false</info> if it is a
  stream one.

<comment>Param:</comment>
  <info>string</info>  <strong>$algorithm</strong>  The algorithm to check.
  <info>string</info>  <strong>$lib_dir  </strong>  The optional <strong>$lib_dir</strong> parameter can contain the location where the algorithm
                      module is on the system.

<comment>Return:</comment>
  <info>bool</info>  This function returns <info>true</info> if the specified algorithm is a block algorithm, or <info>false</info> if it
        is a stream one.


id: mcrypt_module_is_block_algorithm_mode
type: function
doc:
<comment>Description:</comment>
  Returns if the specified module is a block algorithm or not
  
  This function returns <info>true</info> if the mode is for use with block algorithms, otherwise it returns
  <info>false</info>. (e.g. <info>false</info> for stream, and <info>true</info> for cbc, cfb, ofb).

<comment>Param:</comment>
  <info>string</info>  <strong>$mode   </strong>  The mode to check.
  <info>string</info>  <strong>$lib_dir</strong>  The optional <strong>$lib_dir</strong> parameter can contain the location where the algorithm
                    module is on the system.

<comment>Return:</comment>
  <info>bool</info>  This function returns <info>true</info> if the mode is for use with block algorithms, otherwise it
        returns <info>false</info>. (e.g. <info>false</info> for stream, and <info>true</info> for cbc, cfb, ofb).


id: mcrypt_module_is_block_mode
type: function
doc:
<comment>Description:</comment>
  Returns if the specified mode outputs blocks or not
  
  This function returns <info>true</info> if the mode outputs blocks of bytes or <info>false</info> if it outputs just bytes.
  (e.g. <info>true</info> for cbc and ecb, and <info>false</info> for cfb and stream).

<comment>Param:</comment>
  <info>string</info>  <strong>$mode   </strong>  Una din constantele <info>MCRYPT_MODE_modename</info> sau unul din
                    șirurile de caractere: "ecb", "cbc", "cfb", "ofb", "nofb" sau "stream".
  <info>string</info>  <strong>$lib_dir</strong>  The optional <strong>$lib_dir</strong> parameter can contain the location where the algorithm
                    module is on the system.

<comment>Return:</comment>
  <info>bool</info>  This function returns <info>true</info> if the mode outputs blocks of bytes or <info>false</info> if it outputs just
        bytes. (e.g. <info>true</info> for cbc and ecb, and <info>false</info> for cfb and stream).


id: mcrypt_module_open
type: function
doc:
<comment>Description:</comment>
  Opens the module of the algorithm and the mode to be used
  
  This function opens the module of the algorithm and the mode to be used. The name of the algorithm
  is specified in algorithm, e.g. <return>"twofish"</return> or is one of the <info>MCRYPT_ciphername</info> constants.  The
  module is closed by calling <strong>mcrypt_module_close()</strong>.

<comment>Param:</comment>
  <info>string</info>  <strong>$algorithm          </strong>  Una din constantele <info>MCRYPT_ciphername</info> sau denumirea algoritmului ca
                                șir de caractere.
  <info>string</info>  <strong>$algorithm_directory</strong>  The <strong>$algorithm_directory</strong> parameter is used to locate the encryption
                                module. When you supply a directory name, it is used.  When you set
                                it to an empty string (<return>""</return>), the value set by the
                                <return>mcrypt.algorithms_dir</return> php.ini directive is used. When it is not set,
                                the default directory that is used is the one that was compiled into
                                libmcrypt (usually /usr/local/lib/libmcrypt).
  <info>string</info>  <strong>$mode               </strong>  Una din constantele <info>MCRYPT_MODE_modename</info> sau unul din
                                șirurile de caractere: "ecb", "cbc", "cfb", "ofb", "nofb" sau
                                "stream".
  <info>string</info>  <strong>$mode_directory     </strong>  The <strong>$mode_directory</strong> parameter is used to locate the encryption
                                module. When you supply a directory name, it is used.  When you set
                                it to an empty string (<return>""</return>), the value set by the <return>mcrypt.modes_dir</return>
                                php.ini directive is used. When it is not set, the default directory
                                that is used is the one that was compiled-in into libmcrypt (usually
                                /usr/local/lib/libmcrypt).

<comment>Return:</comment>
  <info>resource</info>  Normally it returns an encryption descriptor, or <info>false</info> on error.

<comment>See Also:</comment>
   * <strong>mcrypt_module_close()</strong>
   * <strong>mcrypt_generic()</strong>
   * <strong>mdecrypt_generic()</strong>
   * <strong>mcrypt_generic_init()</strong>
   * <strong>mcrypt_generic_deinit()</strong>


id: mcrypt_module_self_test
type: function
doc:
<comment>Description:</comment>
  This function runs a self test on the specified module
  
  This function runs the self test on the algorithm specified.

<comment>Param:</comment>
  <info>string</info>  <strong>$algorithm</strong>  Una din constantele <info>MCRYPT_ciphername</info> sau denumirea algoritmului ca șir de
                      caractere.
  <info>string</info>  <strong>$lib_dir  </strong>  The optional <strong>$lib_dir</strong> parameter can contain the location where the algorithm
                      module is on the system.

<comment>Return:</comment>
  <info>bool</info>  The function returns <info>true</info> if the self test succeeds, or <info>false</info> when it fails.


id: mcrypt_ofb
type: function
doc:
<comment>Description:</comment>
  Encrypts/decrypts data in OFB mode
  
  The first prototype is when linked against libmcrypt 2.2.x, the second when linked against
  libmcrypt 2.4.x or higher. The <strong>$mode</strong> should be either <info>MCRYPT_ENCRYPT</info> or <info>MCRYPT_DECRYPT</info>.

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


id: md5
type: function
doc:
<comment>Description:</comment>
  Calculate the md5 hash of a string
  
  Calculates the MD5 hash of <strong>$string</strong> using the RSA Data Security, Inc. MD5 Message-Digest Algorithm,
  and returns that hash.

<comment>Param:</comment>
  <info>string</info>  <strong>$string</strong>  The string.
  <info>bool  </info>  <strong>$binary</strong>  If the optional <strong>$binary</strong> is set to <info>true</info>, then the md5 digest is instead returned
                   in raw binary format with a length of 16.

<comment>Return:</comment>
  <info>string</info>  Returns the hash as a 32-character hexadecimal number.

<comment>See Also:</comment>
   * <strong>md5_file()</strong>
   * <strong>sha1_file()</strong>
   * <strong>crc32()</strong>
   * <strong>sha1()</strong>
   * <strong>hash()</strong>
   * <strong>crypt()</strong>
   * <strong>password_hash()</strong>


id: md5_file
type: function
doc:
<comment>Description:</comment>
  Calculates the md5 hash of a given file
  
  Calculates the MD5 hash of the file specified by the <strong>$filename</strong> parameter using the RSA Data
  Security, Inc.  MD5 Message-Digest Algorithm, and returns that hash. The hash is a 32-character
  hexadecimal number.

<comment>Param:</comment>
  <info>string</info>  <strong>$filename</strong>  The filename
  <info>bool  </info>  <strong>$binary  </strong>  When <info>true</info>, returns the digest in raw binary format with a length of 16.

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

<comment>See Also:</comment>
   * <strong>md5()</strong>
   * <strong>sha1_file()</strong>
   * <strong>crc32()</strong>


id: mdecrypt_generic
type: function
doc:
<comment>Description:</comment>
  Decrypts data
  
  This function decrypts data. Note that the length of the returned string can in fact be longer
  than the unencrypted string, due to the padding of the data.

<comment>Param:</comment>
  <info>resource</info>  <strong>$td  </strong>  An encryption descriptor returned by <strong>mcrypt_module_open()</strong>
  <info>string  </info>  <strong>$data</strong>  Encrypted data.

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

<comment>See Also:</comment>
   * <strong>mcrypt_generic()</strong>
   * <strong>mcrypt_generic_init()</strong>
   * <strong>mcrypt_generic_deinit()</strong>


id: memcache_debug
type: function
doc:
<comment>Description:</comment>
  Turn debug output on/off
  
  <strong>memcache_debug()</strong> turns on debug output if parameter <strong>$on_off</strong> is equal to <info>true</info> and turns off if it's
  <info>false</info>. <strong>memcache_debug()</strong> is accessible only if PHP was built with --enable-debug option and always
  returns <info>true</info> in this case. Otherwise, this function has no effect and always returns <info>false</info>.
  
  <strong>memcache_debug()</strong> is accessible only if PHP was built with --enable-debug option and always returns
  <info>true</info> in this case. Otherwise, this function has no effect and always returns <info>false</info>.

<comment>Param:</comment>
  <info>bool</info>  <strong>$on_off</strong>  Turns debug output on if equals to <info>true</info>. Turns debug output off if equals to <info>false</info>.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if PHP was built with --enable-debug option, otherwise returns <info>false</info>.


id: memory_get_peak_usage
type: function
doc:
<comment>Description:</comment>
  Returns the peak of memory allocated by PHP
  
  Returns the peak of memory, in bytes, that's been allocated to your PHP script.

<comment>Param:</comment>
  <info>bool</info>  <strong>$real_usage</strong>  Set this to <info>true</info> to get the real size of memory allocated from system. If not
                     set or <info>false</info> only the memory used by <return>emalloc()</return> is reported.

<comment>Return:</comment>
  <info>int</info>  Returns the memory peak in bytes.

<comment>See Also:</comment>
   * <strong>memory_get_usage()</strong>
   * memory_limit


id: memory_get_usage
type: function
doc:
<comment>Description:</comment>
  Returns the amount of memory allocated to PHP
  
  Returns the amount of memory, in bytes, that's currently being allocated to your PHP script.

<comment>Param:</comment>
  <info>bool</info>  <strong>$real_usage</strong>  Set this to <info>true</info> to get total memory allocated from system, including unused
                     pages.  If not set or <info>false</info> only the used memory is reported.

<comment>Return:</comment>
  <info>int</info>  Returns the memory amount in bytes.

<comment>See Also:</comment>
   * <strong>memory_get_peak_usage()</strong>
   * memory_limit


id: metaphone
type: function
doc:
<comment>Description:</comment>
  Calculate the metaphone key of a string
  
  Calculates the metaphone key of <strong>$string</strong>.
  
  Similar to <strong>soundex()</strong> metaphone creates the same key for similar sounding words. It's more accurate
  than <strong>soundex()</strong> as it knows the basic rules of English pronunciation.  The metaphone generated keys
  are of variable length.
  
  Metaphone was developed by Lawrence Philips \<lphilips at verity dot com&gt;. It is described in ["Practical Algorithms for Programmers", Binstock & Rex, Addison Wesley, 1995].

<comment>Param:</comment>
  <info>string</info>  <strong>$string      </strong>  The input string.
  <info>int   </info>  <strong>$max_phonemes</strong>  This parameter restricts the returned metaphone key to  <strong>$max_phonemes</strong>
                         characters in length. However, the resulting phonemes are always
                         transcribed completely, so the resulting string length may be slightly
                         longer than <strong>$max_phonemes</strong>. The default value of <return>0</return> means no restriction.

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


id: method_exists
type: function
doc:
<comment>Description:</comment>
  Checks if the class method exists
  
  Checks if the class method exists in the given <strong>$object</strong>.

<comment>Param:</comment>
  <info>stringobject</info>  <strong>$object     </strong>  An object instance or a class name
  <info>string      </info>  <strong>$method_name</strong>  The method name

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if the method given by <strong>$method_name</strong> has been defined for the given <strong>$object</strong>,
        <info>false</info>  otherwise.

<comment>See Also:</comment>
   * <strong>function_exists()</strong>
   * <strong>is_callable()</strong>
   * <strong>class_exists()</strong>


id: mhash
type: function
doc:
<comment>Description:</comment>
  Computes hash
  
  <strong>mhash()</strong> applies a hash function specified by <strong>$algo</strong> to the <strong>$data</strong>.

<comment>Param:</comment>
  <info>int       </info>  <strong>$algo</strong>  The hash ID. One of the <info>MHASH_hashname</info> constants.
  <info>string    </info>  <strong>$data</strong>  The user input, as a string.
  <info>stringnull</info>  <strong>$key </strong>  If specified, the function will return the resulting HMAC instead. HMAC is
                     keyed hashing for message authentication, or simply a message digest that
                     depends on the specified key. Not all algorithms  supported in mhash can be
                     used in HMAC mode.

<comment>Return:</comment>
  <info>stringfalse</info>  Returns the resulting hash (also called digest) or HMAC as a string, or <info>false</info> on
               error.


id: mhash_count
type: function
doc:
<comment>Description:</comment>
  Gets the highest available hash ID
  
  Gets the highest available hash ID.

<comment>Return:</comment>
  <info>int</info>  Returns the highest available hash ID. Hashes are numbered from 0 to this hash ID.


id: mhash_get_block_size
type: function
doc:
<comment>Description:</comment>
  Gets the block size of the specified hash
  
  Gets the size of a block of the specified <strong>$algo</strong>.

<comment>Param:</comment>
  <info>int</info>  <strong>$algo</strong>  The hash ID. One of the <info>MHASH_hashname</info> constants.

<comment>Return:</comment>
  <info>intfalse</info>  Returns the size in bytes or <info>false</info>, if the <strong>$algo</strong> does not exist.


id: mhash_get_hash_name
type: function
doc:
<comment>Description:</comment>
  Gets the name of the specified hash
  
  Gets the name of the specified <strong>$algo</strong>.

<comment>Param:</comment>
  <info>int</info>  <strong>$algo</strong>  The hash ID. One of the <info>MHASH_hashname</info> constants.

<comment>Return:</comment>
  <info>stringfalse</info>  Returns the name of the hash or <info>false</info>, if the hash does not exist.


id: mhash_keygen_s2k
type: function
doc:
<comment>Description:</comment>
  Generates a key
  
  Generates a key according to the given <strong>$algo</strong>, using an user provided <strong>$password</strong>.
  
  This is the Salted S2K algorithm as specified in the OpenPGP document (RFC 2440).
  
  Keep in mind that user supplied passwords are not really suitable to be used as keys in
  cryptographic algorithms, since users normally choose keys they can write on keyboard. These
  passwords use only 6 to 7 bits per character (or less). It is highly recommended to use some kind
  of transformation (like this function) to the user supplied key.

<comment>Param:</comment>
  <info>int   </info>  <strong>$algo    </strong>  The hash ID used to create the key. One of the <info>MHASH_hashname</info> constants.
  <info>string</info>  <strong>$password</strong>  An user supplied password.
  <info>string</info>  <strong>$salt    </strong>  Must be different and random enough for every key you generate in order to
                     create different keys. Because <strong>$salt</strong> must be known when you check the keys, it
                     is a good idea to append the key to it. Salt has a fixed length of 8 bytes and
                     will be padded with zeros if you supply less bytes.
  <info>int   </info>  <strong>$length  </strong>  The key length, in bytes.

<comment>Return:</comment>
  <info>stringfalse</info>  Returns the generated key as a string, or <info>false</info> on error.


id: microtime
type: function
doc:
<comment>Description:</comment>
  Întoarce timpul curent Unix cu microsecunde
  
  <strong>microtime()</strong> întoarce timpul curent Unix cu microsecunde. Această funcție este disponibilă numai pe
  sistemele de operare ce susțin apelul de sistem gettimeofday().
  
  Pentru măsurarea performanței este recomandată utilizarea funcției <strong>hrtime()</strong>.

<comment>Param:</comment>
  <info>bool</info>  <strong>$getAsFloat</strong>  Dacă se utilizează și este stabilită în <info>true</info>, <strong>microtime()</strong> va întoarce un <info>float</info>
                     în loc de <info>string</info>, după cum este descris în secțiunea de mai jos despre valorile
                     întoarse.

<comment>Return:</comment>
  <info>mixed</info>  În mod implicit <strong>microtime()</strong> întoarce un <info>string</info> de forma "msec sec", unde <return>sec</return> este numărul
         de secunde ce s-au scurs de la epoca Unix (0:00:00 1 Ianuarie, 1970 GMT), și <return>msec</return> este
         numărul de microsecunde ce s-au scurs după <return>sec</return> exprimat în secunde.
         
         Dacă <strong>$getAsFloat</strong> este stabilit în <info>true</info>, atunci <strong>microtime()</strong> întoarce un <info>float</info>, care
         reprezintă timpul curent în secunde ce s-au scurs de la epoca Unix cu precizia de
         microsecundă.

<comment>See Also:</comment>
   * <strong>time()</strong>
   * <strong>hrtime()</strong>


id: mime_content_type
type: function
doc:
<comment>Description:</comment>
  Detect MIME Content-type for a file
  
  Returns the MIME content type for a file as determined by using information from the magic.mime
  file.

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

<comment>Return:</comment>
  <info>stringfalse</info>  Returns the content type in MIME format, like  <return>text/plain</return> or
               <return>application/octet-stream</return>, sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>finfo_file()</strong>
   * <strong>finfo_buffer()</strong>


id: min
type: function
doc:
<comment>Description:</comment>
  Find lowest value
  
  Alternative signature (not supported with named arguments):
  
  If the first and only parameter is an array, <strong>min()</strong> returns the lowest value in that array. If at
  least two parameters are  provided, <strong>min()</strong> returns the smallest of these values.
  
  Values of different types will be compared using the  standard comparison rules. For instance, a
  non-numeric <info>string</info> will be compared to an <info>int</info> as though it were <return>0</return>, but multiple non-numeric <info>string</info>
  values will be compared alphanumerically. The actual value returned will be of the original type
  with no conversion applied.
  
  Be careful when passing arguments of different types because <strong>min()</strong> can produce unpredictable
  results.

<comment>Param:</comment>
  <info>mixed</info>  <strong>$value      </strong>  Any comparable value.
  <info>mixed</info>  <strong>$values     </strong>  Any comparable values.
  <info>array</info>  <strong>$value_array</strong>  An array containing the values.

<comment>Return:</comment>
  <info>mixed</info>  <strong>min()</strong> returns the parameter value considered "lowest" according to standard comparisons. If
         multiple values of different types evaluate as equal (e.g. <return>0</return> and <return>'abc'</return>) the first provided
         to the function will be returned.
         
         If an empty array is passed, then <info>false</info> will be returned and an <info>E_WARNING</info> error will be
         emitted.

<comment>See Also:</comment>
   * <strong>max()</strong>
   * <strong>count()</strong>


id: mkdir
type: function
doc:
<comment>Description:</comment>
  Makes directory
  
  Attempts to create the directory specified by pathname.

<comment>Param:</comment>
  <info>string  </info>  <strong>$pathname </strong>  The directory path.
  <info>int     </info>  <strong>$mode     </strong>  The mode is 0777 by default, which means the widest possible access. For
                        more information on modes, read the details on the <strong>chmod()</strong> page.
                        
                        <strong>$mode</strong> is ignored on Windows.
                        
                        Note that you probably want to specify the mode as an octal number, which
                        means it should have a leading zero. The mode is also modified by the
                        current umask, which you can change using <strong>umask()</strong>.
  <info>bool    </info>  <strong>$recursive</strong>  Allows the creation of nested directories specified in the  <strong>$pathname</strong>.
  <info>resource</info>  <strong>$context  </strong>  Susținrea contextelor a fost adăugată începând cu PHP 5.0.0. Pentru o
                        descriere a <return>contextelor</return>, referiți-vă la
                        .

<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>is_dir()</strong>
   * <strong>rmdir()</strong>


id: mktime
type: function
doc:
<comment>Description:</comment>
  Obține timestamp-ul Unix pentru o dată și oră
  
  Întoarce timestamp-ul Unix ce corespunde argumentelor furnizate. Acest timestamp este un integer
  lung conținând numărul de secunde între Epoca Unix (1 Ianuarie 1970 00:00:00 GMT) și timpul
  specificat.
  
  Argumentele pot fi omise unul după altul de la dreapta spre atânga; orice argument omis va fi
  stabilit la valoarea curentă în corespundere cu data și ora locale.

<comment>Param:</comment>
  <info>int</info>  <strong>$hour  </strong>  Numărul orei relativ cu începutul zilei determinat de <strong>$month</strong>, <strong>$day</strong> și <strong>$year</strong>.
                Valorile negative se referă la ora înainte de miezul nopții a zilei în cauză.
                Valorile mai mari decât 23 se referă la ora corespunzătoare a zilei (zilelor)
                următoare.
  <info>int</info>  <strong>$minute</strong>  Numărul minutului relativ cu începutul orei determinat de <strong>$hour</strong>. Valorile negative
                se referă la minutul orei precedente. Valorile mai mari decât 59 se referă la
                minutul corespunzător a orei (orelor) următoare.
  <info>int</info>  <strong>$second</strong>  Numărul de secunde relativ cu începutul minutului determinat de <strong>$minute</strong>. Valorile
                negative se referă la secunda minutului precedent. Valorile mai mari decât 59 se
                referă la secunda corespunzătoare ale minutului (minutelor) următoare.
  <info>int</info>  <strong>$month </strong>  Numărul lunii relativ cu sfârșitul anului precedent. Valorile de la 1 până la 12 se
                referă la lunile normale ale anului în cauză. Valorile mai mici decât 1 (inclusiv
                valorile negative) se referă la lunile anului precedent în ordine inversă, deci 0
                este Decembrie, -1 este Noiembrie, etc. Valorile mai mari decât 12 se referă la luna
                corespunzătoare a anului (anilor) următor.
  <info>int</info>  <strong>$day   </strong>  Numărul zilei relativ cu sfârșitul lunii precedente. Valorile de la 1 până la 28,
                29, 30 sau 31 (în dependență de lună) se referă la zilele normale ale lunii în
                cauză. Valorile mai mici decât 1 (inclusiv valorile negative) se referă la zilele
                lunii precedente, deci 0 este ultima zi a lunii precedente, -1 este penultima zi,
                etc. Valorile mai mari decât numărul de zile din luna respectivă se referă la ziua
                corespunzătoare din luna (lunile) următoare.
  <info>int</info>  <strong>$year  </strong>  Numărul anului. Poate fi format din două sau din patru cifre. Valorile 0-69
                corespund anilor 2000-2069, iar 70-100 corespund 1970-2000. Pe sistemele unde time_t
                este un întreg pe 32 biți cu semn, cum este pe majoritatea sistemelor contemporane,
                domeniul valid pentru <strong>$year</strong> este între 1901 și 2038. Însă înainte de PHP 5.1.0 acest
                domeniu era limitat între 1970 și 2038 pe unele sisteme (de ex. Windows).
  <info>int</info>  <strong>$isDST </strong>  Acest parametru poate fi stabilit în 1 dacă este în efect timpul de vară (daylight
                savings time (DST)), 0 dacă nu, sau -1 (valoarea implicită) dacă nu se cunoaște dacă
                este în efect timpul de vară. Dacă nu se cunoaște, PHP încearcă singur să determine
                acest lucru. Aceasta poate cauza rezultate neașteptate (dar nu neapărat incorecte).
                Unele ore nu sunt valide dacă DST este activat pe sistemul unde rulează PHP, sau
                dacă parametrul <strong>$isDST</strong> este stabilit în 1. Dacă DST este activat de ex. la 2:00,
                toate orele între 2:00 și 3:00 sunt invalide și <strong>mktime()</strong> întoarce o valoare
                nedefinită (de obicei negativă). Unele sisteme (de ex. Solaris 8) activează DST la
                miezul nopții, de aceea ora 0:30 în ziua când DST este activat este evaluată ca
                23:30 a zilei precedente.
                
                Începând cu PHP 5.1.0, acest parametru a devenit învechit. În consecința acestui
                fapt trebuie utilizate noile facilități de gestiune a fusului orar.
                
                Acest parametru a fost eliminat în PHP 7.0.0.

<comment>Return:</comment>
  <info>int</info>  <strong>mktime()</strong> întoarce timestamp-ul Unix al argumentelor furnizate. Dacă argumentele nu sunt
       valide, funcția întoarce <info>false</info> (înainte de PHP 5.1 întorcea <return>-1</return>).

<comment>See Also:</comment>
   * <strong>checkdate()</strong>
   * <strong>gmmktime()</strong>
   * <strong>date()</strong>
   * <strong>time()</strong>


id: money_format
type: function
doc:
<comment>Description:</comment>
  Formats a number as a currency string
  
  <strong>money_format()</strong> returns a formatted version of <strong>$number</strong>.  This function wraps the C library function
  <strong>strfmon()</strong>, with the difference that this implementation converts only one number at a time.

<comment>Param:</comment>
  <info>string</info>  <strong>$format</strong>  The format specification consists of the following sequence: a <return>%</return>
                   characteroptional flagsoptional field widthoptional left precisionoptional right
                   precisiona required conversion character
                   
                   a <return>%</return> character
                   
                   optional flags
                   
                   optional field width
                   
                   optional left precision
                   
                   optional right precision
                   
                   a required conversion character
                   
                   One or more of the optional flags below can be used: <return>=</return>f The character <return>=</return> followed
                   by a (single byte) character f to be used as the numeric fill character. The
                   default fill character is space. <return>^</return> Disable the use of grouping characters (as
                   defined by the current locale). <return>+</return> or <return>(</return> Specify the formatting style for positive
                   and negative numbers. If <return>+</return> is used, the locale's equivalent for <return>+</return> and <return>-</return> will be
                   used. If <return>(</return> is used, negative amounts are enclosed in parenthesis. If no
                   specification is given, the default is <return>+</return>. <return>!</return> Suppress the currency symbol from the
                   output string. <return>-</return> If present, it will make all fields left-justified (padded to
                   the right), as opposed to the default which is for the fields to be
                   right-justified (padded to the left).
                   
                   The character <return>=</return> followed by a (single byte) character f to be used as the numeric
                   fill character. The default fill character is space.
                   
                   Disable the use of grouping characters (as defined by the current locale).
                   
                   Specify the formatting style for positive and negative numbers. If <return>+</return> is used, the
                   locale's equivalent for <return>+</return> and <return>-</return> will be used. If <return>(</return> is used, negative amounts are
                   enclosed in parenthesis. If no specification is given, the default is <return>+</return>.
                   
                   Suppress the currency symbol from the output string.
                   
                   If present, it will make all fields left-justified (padded to the right), as
                   opposed to the default which is for the fields to be right-justified (padded to
                   the left).
                   
                   w A decimal digit string specifying a minimum field width. Field will be
                   right-justified unless the flag <return>-</return> is used. Default value is 0 (zero).
                   
                   A decimal digit string specifying a minimum field width. Field will be
                   right-justified unless the flag <return>-</return> is used. Default value is 0 (zero).
                   
                   <return>#</return>n The maximum number of digits (n) expected to the left of the decimal character
                   (e.g. the decimal point). It is used usually to keep formatted output aligned in
                   the same columns, using the fill character if the number of digits is less than
                   n. If the number of actual digits is bigger than n, then this specification is
                   ignored.  If grouping has not been suppressed using the <return>^</return> flag, grouping
                   separators will be inserted before the fill characters (if any) are added.
                   Grouping separators will not be applied to fill characters, even if the fill
                   character is a digit.  To ensure alignment, any characters appearing before or
                   after the number in the formatted output such as currency or sign symbols are
                   padded as necessary with space characters to make their positive and negative
                   formats an equal length.
                   
                   The maximum number of digits (n) expected to the left of the decimal character
                   (e.g. the decimal point). It is used usually to keep formatted output aligned in
                   the same columns, using the fill character if the number of digits is less than
                   n. If the number of actual digits is bigger than n, then this specification is
                   ignored.
                   
                   If grouping has not been suppressed using the <return>^</return> flag, grouping separators will be
                   inserted before the fill characters (if any) are added. Grouping separators will
                   not be applied to fill characters, even if the fill character is a digit.
                   
                   To ensure alignment, any characters appearing before or after the number in the
                   formatted output such as currency or sign symbols are padded as necessary with
                   space characters to make their positive and negative formats an equal length.
                   
                   <return>.</return>p A period followed by the number of digits (p) after the decimal character. If
                   the value of p is 0 (zero), the decimal character and the digits to its right
                   will be omitted. If no right precision is included, the default will dictated by
                   the current locale in use. The amount being formatted is rounded to the specified
                   number of digits prior to formatting.
                   
                   A period followed by the number of digits (p) after the decimal character. If the
                   value of p is 0 (zero), the decimal character and the digits to its right will be
                   omitted. If no right precision is included, the default will dictated by the
                   current locale in use. The amount being formatted is rounded to the specified
                   number of digits prior to formatting.
                   
                   <return>i</return> The number is formatted according to the locale's international currency format
                   (e.g. for the USA locale: USD 1,234.56). <return>n</return> The number is formatted according to
                   the locale's national currency format (e.g. for the de_DE locale: EU1.234,56). <return>%</return>
                   Returns the <return>%</return> character.
                   
                   The number is formatted according to the locale's international currency format
                   (e.g. for the USA locale: USD 1,234.56).
                   
                   The number is formatted according to the locale's national currency format (e.g.
                   for the de_DE locale: EU1.234,56).
                   
                   Returns the <return>%</return> character.
  <info>float </info>  <strong>$number</strong>  The number to be formatted.

<comment>Return:</comment>
  <info>string</info>  Returns the formatted string. Characters before and after the formatting string will be
          returned unchanged. Non-numeric <strong>$number</strong> causes returning <info>null</info> and emitting <info>E_WARNING</info>.

<comment>See Also:</comment>
   * <strong>setlocale()</strong>
   * <strong>sscanf()</strong>
   * <strong>sprintf()</strong>
   * <strong>printf()</strong>
   * <strong>number_format()</strong>


id: move_uploaded_file
type: function
doc:
<comment>Description:</comment>
  Moves an uploaded file to a new location
  
  This function checks to ensure that the file designated by <strong>$from</strong> is a valid upload file (meaning
  that it was uploaded via PHP's HTTP POST upload mechanism). If the file is valid, it will be moved
  to the filename given by <strong>$to</strong>.
  
  This sort of check is especially important if there is any chance that anything done with uploaded
  files could reveal their contents to the user, or even to other users on the same system.

<comment>Param:</comment>
  <info>string</info>  <strong>$from</strong>  The filename of the uploaded file.
  <info>string</info>  <strong>$to  </strong>  The destination of the moved file.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> on success.
        
        If <strong>$from</strong> is not a valid upload file, then no action will occur, and <strong>move_uploaded_file()</strong>
        will return <info>false</info>.
        
        If <strong>$from</strong> is a valid upload file, but cannot be moved for some reason, no action will occur,
        and <strong>move_uploaded_file()</strong> will return <info>false</info>. Additionally, a warning will be issued.

<comment>See Also:</comment>
   * <strong>is_uploaded_file()</strong>
   * <strong>rename()</strong>
   * See Handling file uploads for a simple usage example


id: mqseries_back
type: function
doc:
<comment>Description:</comment>
  MQSeries MQBACK
  
  The <strong>mqseries_back()</strong> (MQBACK) call indicates to the queue manager that all the message gets and
  puts that have occurred since the last syncpoint are to be backed out. Messages put as part of a
  unit of work are deleted; messages retrieved as part of a unit of work are reinstated on the
  queue.
  
  Using <strong>mqseries_back()</strong> only works in conjunction with <strong>mqseries_begin()</strong> and only function when
  connecting directly to a Queueu manager. Not via the mqclient interface.

<comment>Param:</comment>
  <info>        </info>  <strong>$hConn   </strong>  Connection handle.
                       
                       This handle represents the connection to the queue manager.
  <info>resource</info>  <strong>$compCode</strong>  Completion code.
  <info>resource</info>  <strong>$reason  </strong>  Reason code qualifying the compCode.

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

<comment>See Also:</comment>
   * <strong>mqseries_conn()</strong>
   * <strong>mqseries_connx()</strong>
   * <strong>mqseries_begin()</strong>


id: mqseries_begin
type: function
doc:
<comment>Description:</comment>
  MQseries MQBEGIN
  
  The <strong>mqseries_begin()</strong> (MQBEGIN) call begins a unit of work that is coordinated by the queue
  manager, and that may involve external resource managers.
  
  Using <strong>mqseries_begin()</strong> starts the unit of work. Either <strong>mqseries_back()</strong> or <strong>mqseries_cmit()</strong> ends the
  unit of work.

<comment>Param:</comment>
  <info>        </info>  <strong>$hConn   </strong>  Connection handle.
                       
                       This handle represents the connection to the queue manager.
  <info>resource</info>  <strong>$compCode</strong>  Completion code.
  <info>resource</info>  <strong>$reason  </strong>  Reason code qualifying the compCode.

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

<comment>See Also:</comment>
   * <strong>mqseries_conn()</strong>
   * <strong>mqseries_connx()</strong>
   * <strong>mqseries_back()</strong>
   * <strong>mqseries_cmit()</strong>


id: mqseries_close
type: function
doc:
<comment>Description:</comment>
  MQSeries MQCLOSE
  
  The <strong>mqseries_close()</strong> (MQCLOSE) call relinquishes access to an object, and is the inverse of the
  <strong>mqseries_open()</strong> (MQOPEN) call.

<comment>Param:</comment>
  <info>        </info>  <strong>$hConn   </strong>  Connection handle.
                       
                       This handle represents the connection to the queue manager.
  <info>        </info>  <strong>$hObj    </strong>  Object handle.
                       
                       This handle represents the object to be used.
  <info>int     </info>  <strong>$options </strong>  
  <info>resource</info>  <strong>$compCode</strong>  Completion code.
  <info>resource</info>  <strong>$reason  </strong>  Reason code qualifying the compCode.

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

<comment>See Also:</comment>
   * <strong>mqseries_open()</strong>
   * <strong>mqseries_conn()</strong>
   * <strong>mqseries_connx()</strong>


id: mqseries_cmit
type: function
doc:
<comment>Description:</comment>
  MQSeries MQCMIT
  
  The <strong>mqseries_cmit()</strong> (MQCMIT) call indicates to the queue manager that the application has reached
  a syncpoint, and that all of the message gets and puts that have occurred since the last syncpoint
  are to be made permanent. Messages put as part of a unit of work are made available to other
  applications; messages retrieved as part of a unit of work are deleted.

<comment>Param:</comment>
  <info>        </info>  <strong>$hConn   </strong>  Connection handle.
                       
                       This handle represents the connection to the queue manager.
  <info>resource</info>  <strong>$compCode</strong>  Completion code.
  <info>resource</info>  <strong>$reason  </strong>  Reason code qualifying the compCode.

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

<comment>See Also:</comment>
   * <strong>mqseries_begin()</strong>
   * <strong>mqseries_back()</strong>
   * <strong>mqseries_conn()</strong>
   * <strong>mqseries_connx()</strong>


id: mqseries_conn
type: function
doc:
<comment>Description:</comment>
  MQSeries MQCONN
  
  The <strong>mqseries_conn()</strong> (MQCONN) call connects an application program to a queue manager. It provides
  a queue manager connection handle, which is used by the application on subsequent message queuing
  calls.

<comment>Param:</comment>
  <info>string  </info>  <strong>$qManagerName</strong>  Name of queue manager.
                           
                           Name of the queue manager the application wishes to connect.
  <info>        </info>  <strong>$hConn       </strong>  Connection handle.
                           
                           This handle represents the connection to the queue manager.
  <info>resource</info>  <strong>$compCode    </strong>  Completion code.
  <info>resource</info>  <strong>$reason      </strong>  Reason code qualifying the compCode.

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

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


id: mqseries_connx
type: function
doc:
<comment>Description:</comment>
  MQSeries MQCONNX
  
  The <strong>mqseries_connx()</strong> (MQCONNX) call connects an application program to a queue manager. It
  provides a queue manager connection handle, which is used by the application on subsequent MQ
  calls.
  
  The <strong>mqseries_connx()</strong> call is like the  <strong>mqseries_conn()</strong> (MQCONN) call, except that MQCONNX  allows
  options to be specified to control the way that the call works.

<comment>Param:</comment>
  <info>string  </info>  <strong>$qManagerName</strong>  Name of queue manager.
                           
                           Name of the queue manager the application wishes to connect.
  <info>        </info>  <strong>$connOps     </strong>  Options that control the action of function
                           
                           See also the MQCNO structure.
  <info>        </info>  <strong>$hConn       </strong>  Connection handle.
                           
                           This handle represents the connection to the queue manager.
  <info>resource</info>  <strong>$compCode    </strong>  Completion code.
  <info>resource</info>  <strong>$reason      </strong>  Reason code qualifying the compCode.

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

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


id: mqseries_disc
type: function
doc:
<comment>Description:</comment>
  MQSeries MQDISC
  
  The <strong>mqseries_disc()</strong> (MQDISC) call breaks the connection between the queue manager and the
  application program, and is the inverse of the <strong>mqseries_conn()</strong> (MQCONN) or <strong>mqseries_connx()</strong>
  (MQCONNX) call.

<comment>Param:</comment>
  <info>        </info>  <strong>$hConn   </strong>  Connection handle.
                       
                       This handle represents the connection to the queue manager.
  <info>resource</info>  <strong>$compCode</strong>  Completion code.
  <info>resource</info>  <strong>$reason  </strong>  Reason code qualifying the compCode.

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

<comment>See Also:</comment>
   * <strong>mqseries_conn()</strong>
   * <strong>mqseries_connx()</strong>


id: mqseries_get
type: function
doc:
<comment>Description:</comment>
  MQSeries MQGET
  
  The <strong>mqseries_get()</strong> (MQGET) call retrieves a message from a local queue that has been opened using
  the <strong>mqseries_open()</strong> (MQOPEN) call

<comment>Param:</comment>
  <info>resource</info>  <strong>$hConn       </strong>  Connection handle.
                           
                           This handle represents the connection to the queue manager.
  <info>resource</info>  <strong>$hObj        </strong>  Object handle.
                           
                           This handle represents the object to be used.
  <info>array   </info>  <strong>$md          </strong>  Message descriptor (MQMD).
  <info>array   </info>  <strong>$gmo         </strong>  Get message options (MQGMO).
  <info>int     </info>  <strong>$bufferLength</strong>  Expected length of the result buffer
  <info>string  </info>  <strong>$msg         </strong>  Buffer holding the message that was retrieved from the object.
  <info>int     </info>  <strong>$data_length </strong>  Actual buffer length
  <info>resource</info>  <strong>$compCode    </strong>  Completion code.
  <info>resource</info>  <strong>$reason      </strong>  Reason code qualifying the compCode.

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

<comment>See Also:</comment>
   * <strong>mqseries_conn()</strong>
   * <strong>mqseries_connx()</strong>
   * <strong>mqseries_open()</strong>
   * <strong>mqseries_put()</strong>


id: mqseries_inq
type: function
doc:
<comment>Description:</comment>
  MQSeries MQINQ
  
  The <strong>mqseries_inq()</strong> (MQINQ) call returns an array of integers and a set of character strings
  containing the attributes of an object.

<comment>Param:</comment>
  <info>        </info>  <strong>$hConn         </strong>  Connection handle.
                             
                             This handle represents the connection to the queue manager.
  <info>        </info>  <strong>$hObj          </strong>  Object handle.
                             
                             This handle represents the object to be used.
  <info>int     </info>  <strong>$selectorCount </strong>  Count of selectors.
  <info>array   </info>  <strong>$selectors     </strong>  Array of attribute selectors.
  <info>        </info>  <strong>$intAttrLength </strong>  Count of integer attributes.
  <info>resource</info>  <strong>$intAttr       </strong>  Array of integer attributes.
  <info>int     </info>  <strong>$charAttrLength</strong>  Length of character attributes buffer.
  <info>resource</info>  <strong>$charAttr      </strong>  Character attributes.
  <info>resource</info>  <strong>$compCode      </strong>  Completion code.
  <info>resource</info>  <strong>$reason        </strong>  Reason code qualifying the compCode.

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

<comment>See Also:</comment>
   * <strong>mqseries_conn()</strong>
   * <strong>mqseries_connx()</strong>
   * <strong>mqseries_open()</strong>


id: mqseries_open
type: function
doc:
<comment>Description:</comment>
  MQSeries MQOPEN
  
  The <strong>mqseries_open()</strong> (MQOPEN) call establishes access to an object.

<comment>Param:</comment>
  <info>        </info>  <strong>$hConn   </strong>  Connection handle.
                       
                       This handle represents the connection to the queue manager.
  <info>array   </info>  <strong>$objDesc </strong>  Object descriptor. (MQOD)
  <info>        </info>  <strong>$options </strong>  Options that control the action of the function.
  <info>        </info>  <strong>$hObj    </strong>  Object handle.
                       
                       This handle represents the object to be used.
  <info>resource</info>  <strong>$compCode</strong>  Completion code.
  <info>resource</info>  <strong>$reason  </strong>  Reason code qualifying the compCode.

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

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


id: mqseries_put
type: function
doc:
<comment>Description:</comment>
  MQSeries MQPUT
  
  The <strong>mqseries_put()</strong> (MQPUT) call puts a message on a queue or distribution list. The queue or
  distribution list must already be open.

<comment>Param:</comment>
  <info>resource</info>  <strong>$hConn   </strong>  Connection handle.
                       
                       This handle represents the connection to the queue manager.
  <info>resource</info>  <strong>$hObj    </strong>  Object handle.
                       
                       This handle represents the object to be used.
  <info>array   </info>  <strong>$md      </strong>  Message descriptor (MQMD).
  <info>array   </info>  <strong>$pmo     </strong>  Put message options (MQPMO).
  <info>string  </info>  <strong>$message </strong>  The actual message to put onto the queue.
  <info>resource</info>  <strong>$compCode</strong>  Completion code.
  <info>resource</info>  <strong>$reason  </strong>  Reason code qualifying the compCode.

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

<comment>See Also:</comment>
   * <strong>mqseries_conn()</strong>
   * <strong>mqseries_connx()</strong>
   * <strong>mqseries_open()</strong>
   * <strong>mqseries_get()</strong>


id: mqseries_put1
type: function
doc:
<comment>Description:</comment>
  MQSeries MQPUT1
  
  The <strong>mqseries_put1()</strong> (MQPUT1) call puts one message on a queue. The queue need not be open.
  
  You can use both the <strong>mqseries_put()</strong> and <strong>mqseries_put1()</strong> calls to put messages on a queue; which
  call to use depends on the circumstances. Use the <strong>mqseries_put()</strong> (MQPUT) call to place multiple
  messages on the same queue. Use the <strong>mqseries_put1()</strong> (MQPUT1) call to put only one message on a
  queue. This call encapsulates the MQOPEN, MQPUT, and MQCLOSE calls into a single call, minimizing
  the number of calls that must be issued.

<comment>Param:</comment>
  <info>        </info>  <strong>$hConn   </strong>  Connection handle.
                       
                       This handle represents the connection to the queue manager.
  <info>resource</info>  <strong>$objDesc </strong>  Object descriptor. (MQOD)
                       
                       This is a structure which identifies the queue to which the message is added.
  <info>resource</info>  <strong>$msgDesc </strong>  Message descriptor (MQMD).
  <info>resource</info>  <strong>$pmo     </strong>  Put message options (MQPMO).
  <info>resource</info>  <strong>$compCode</strong>  Completion code.
  <info>resource</info>  <strong>$reason  </strong>  Reason code qualifying the compCode.

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

<comment>See Also:</comment>
   * <strong>mqseries_conn()</strong>
   * <strong>mqseries_connx()</strong>
   * <strong>mqseries_open()</strong>
   * <strong>mqseries_get()</strong>


id: mqseries_set
type: function
doc:
<comment>Description:</comment>
  MQSeries MQSET
  
  The <strong>mqseries_set()</strong> (MQSET) call is used to change the attributes of an object represented by a
  handle. The object must be a queue.

<comment>Param:</comment>
  <info>resource</info>  <strong>$hConn         </strong>  Connection handle.
                             
                             This handle represents the connection to the queue manager.
  <info>resource</info>  <strong>$hObj          </strong>  Object handle.
                             
                             This handle represents the object to be used.
  <info>int     </info>  <strong>$selectorCount </strong>  Count of selectors.
  <info>array   </info>  <strong>$selectors     </strong>  Array of attribute selectors.
  <info>int     </info>  <strong>$intAttrCount  </strong>  Count of integer attributes.
  <info>array   </info>  <strong>$intAttrs      </strong>  Array of integer attributes.
  <info>int     </info>  <strong>$charAttrLength</strong>  Length of character attributes buffer.
  <info>array   </info>  <strong>$charAttrs     </strong>  Character attributes.
  <info>resource</info>  <strong>$compCode      </strong>  Completion code.
  <info>resource</info>  <strong>$reason        </strong>  Reason code qualifying the compCode.

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

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


id: mqseries_strerror
type: function
doc:
<comment>Description:</comment>
  Returns the error message corresponding to a result code (MQRC)
  
  <strong>mqseries_strerror()</strong> returns the message that correspond to the reason result code.

<comment>Param:</comment>
  <info>int</info>  <strong>$reason</strong>  Reason code qualifying the compCode.

<comment>Return:</comment>
  <info>string</info>  string representation of the reason code message.


id: msg_get_queue
type: function
doc:
<comment>Description:</comment>
  Create or attach to a message queue
  
  <strong>msg_get_queue()</strong> returns an id that can be used to access the System V message queue with the given
  <strong>$key</strong>. The first call creates the message queue with the optional <strong>$permissions</strong>. A second call to
  <strong>msg_get_queue()</strong> for the same <strong>$key</strong> will return a different message queue identifier, but both
  identifiers access the same underlying message queue.

<comment>Param:</comment>
  <info>int</info>  <strong>$key        </strong>  Message queue numeric ID
  <info>int</info>  <strong>$permissions</strong>  Queue permissions. Default to 0666. If the message queue already exists, the
                     <strong>$permissions</strong> will be ignored.

<comment>Return:</comment>
  <info>SysvMessageQueuefalse</info>  Returns <class>SysvMessageQueue</class> instance that can be used to access the System V
                         message queue, sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>msg_remove_queue()</strong>
   * <strong>msg_receive()</strong>
   * <strong>msg_send()</strong>
   * <strong>msg_stat_queue()</strong>
   * <strong>msg_set_queue()</strong>


id: msg_queue_exists
type: function
doc:
<comment>Description:</comment>
  Check whether a message queue exists
  
  Checks whether the message queue <strong>$key</strong> exists.

<comment>Param:</comment>
  <info>int</info>  <strong>$key</strong>  Queue key.

<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>msg_remove_queue()</strong>
   * <strong>msg_receive()</strong>
   * <strong>msg_stat_queue()</strong>


id: msg_receive
type: function
doc:
<comment>Description:</comment>
  Receive a message from a message queue
  
  <strong>msg_receive()</strong> will receive the first message from the specified <strong>$queue</strong> of the type specified by
  <strong>$desired_message_type</strong>.

<comment>Param:</comment>
  <info>SysvMessageQueue</info>  <strong>$queue                </strong>  The message queue.
  <info>int             </info>  <strong>$desired_message_type </strong>  If <strong>$desired_message_type</strong> is 0, the message from the
                                            front of the queue is returned. If <strong>$desired_message_type</strong>
                                            is greater than 0, then the first message of that type
                                            is returned. If <strong>$desired_message_type</strong> is less than 0,
                                            the first message on the queue with a type less than or
                                            equal to the absolute value of <strong>$desired_message_type</strong>
                                            will be read. If no messages match the criteria, your
                                            script will wait until a suitable message arrives on the
                                            queue.  You can prevent the script from blocking by
                                            specifying <info>MSG_IPC_NOWAIT</info> in the <strong>$flags</strong> parameter.
  <info>int             </info>  <strong>$received_message_type</strong>  The type of the message that was received will be stored
                                            in this parameter.
  <info>int             </info>  <strong>$max_message_size     </strong>  The maximum size of message to be accepted is specified
                                            by the <strong>$max_message_size</strong>; if the message in the queue is
                                            larger than this size the function will fail (unless you
                                            set <strong>$flags</strong> as described below).
  <info>mixed           </info>  <strong>$message              </strong>  The received message will be stored in <strong>$message</strong>, unless
                                            there were errors receiving the message.
  <info>bool            </info>  <strong>$unserialize          </strong>  If set to <info>true</info>, the message is treated as though it was
                                            serialized using the same mechanism as the session
                                            module. The message will be unserialized and then
                                            returned to your script. This allows you to easily
                                            receive arrays or complex object structures from other
                                            PHP scripts, or if you are using the WDDX serializer,
                                            from any WDDX compatible source.
                                            
                                            If <strong>$unserialize</strong> is <info>false</info>, the message will be returned
                                            as a binary-safe string.
  <info>int             </info>  <strong>$flags                </strong>  The optional <strong>$flags</strong> allows you to pass flags to the
                                            low-level msgrcv system call.  It defaults to 0, but you
                                            may specify one or more of the following values (by
                                            adding or ORing them together). Flag values for
                                            msg_receive<info>MSG_IPC_NOWAIT</info>If there are no messages of the
                                            <strong>$desired_message_type</strong>, return immediately and do not
                                            wait.  The function will fail and return an integer
                                            value corresponding to <info>MSG_ENOMSG</info>. <info>MSG_EXCEPT</info>Using this
                                            flag in combination with a <strong>$desired_message_type</strong> greater
                                            than 0 will cause the function to receive the first
                                            message that is not equal to
                                            <strong>$desired_message_type</strong>.<info>MSG_NOERROR</info> If the message is
                                            longer than <strong>$max_message_size</strong>, setting this flag will
                                            truncate the message to <strong>$max_message_size</strong> and will not
                                            signal an error.
  <info>int             </info>  <strong>$error_code           </strong>  If the function fails, the optional <strong>$error_code</strong> will be
                                            set to the value of the system errno variable.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.
        
        Upon successful completion the message queue data structure is updated as follows: <return>msg_lrpid</return>
        is set to the process-ID of the calling process, <return>msg_qnum</return> is decremented by 1 and <return>msg_rtime</return>
        is set to the current time.

<comment>See Also:</comment>
   * <strong>msg_remove_queue()</strong>
   * <strong>msg_send()</strong>
   * <strong>msg_stat_queue()</strong>
   * <strong>msg_set_queue()</strong>


id: msg_remove_queue
type: function
doc:
<comment>Description:</comment>
  Destroy a message queue
  
  <strong>msg_remove_queue()</strong> destroys the message queue specified by the <strong>$queue</strong>.  Only use this function
  when all processes have finished working with the message queue and you need to release the system
  resources held by it.

<comment>Param:</comment>
  <info>SysvMessageQueue</info>  <strong>$queue</strong>  The message queue.

<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>msg_get_queue()</strong>
   * <strong>msg_receive()</strong>
   * <strong>msg_stat_queue()</strong>
   * <strong>msg_set_queue()</strong>


id: msg_send
type: function
doc:
<comment>Description:</comment>
  Send a message to a message queue
  
  <strong>msg_send()</strong> sends a <strong>$message</strong> of type <strong>$message_type</strong> (which MUST be greater than 0) to the message
  queue specified by <strong>$queue</strong>.

<comment>Param:</comment>
  <info>SysvMessageQueue  </info>  <strong>$queue       </strong>  The message queue.
  <info>int               </info>  <strong>$message_type</strong>  The type of the message (MUST be greater than 0)
  <info>stringintfloatbool</info>  <strong>$message     </strong>  The body of the message.
                                     
                                     If <strong>$serialize</strong> set to <info>false</info> is supplied, MUST be of type:
                                     <info>string</info>, <info>int</info>, <info>float</info>  or <info>bool</info>. In other case a warning will be
                                     issued.
  <info>bool              </info>  <strong>$serialize   </strong>  The optional <strong>$serialize</strong> controls how the <strong>$message</strong> is sent.
                                     <strong>$serialize</strong> defaults to <info>true</info> which means that the <strong>$message</strong> is
                                     serialized using the same mechanism as the session module
                                     before being sent to the queue.  This allows complex arrays and
                                     objects to be sent to other PHP scripts, or if you are using
                                     the WDDX serializer, to any WDDX compatible client.
  <info>bool              </info>  <strong>$blocking    </strong>  If the message is too large to fit in the queue, your script
                                     will wait until another process reads messages from the queue
                                     and frees enough space for your message to be sent. This is
                                     called blocking; you can prevent blocking by setting the
                                     optional <strong>$blocking</strong> parameter to <info>false</info>, in which case <strong>msg_send()</strong>
                                     will immediately return <info>false</info> if the message is too big for the
                                     queue, and set the optional <strong>$error_code</strong> to <info>MSG_EAGAIN</info>,
                                     indicating that you should try to send your message again a
                                     little later on.
  <info>int               </info>  <strong>$error_code  </strong>  If the function fails, the optional errorcode will be set to
                                     the value of the system errno variable.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.
        
        Upon successful completion the message queue data structure is updated as follows:
        <strong>$msg_lspid</strong> is set to the process-ID of the calling process, <strong>$msg_qnum</strong> is incremented by 1
        and <strong>$msg_stime</strong> is set to the current time.

<comment>See Also:</comment>
   * <strong>msg_remove_queue()</strong>
   * <strong>msg_receive()</strong>
   * <strong>msg_stat_queue()</strong>
   * <strong>msg_set_queue()</strong>


id: msg_set_queue
type: function
doc:
<comment>Description:</comment>
  Set information in the message queue data structure
  
  <strong>msg_set_queue()</strong> allows you to change the values of the msg_perm.uid, msg_perm.gid, msg_perm.mode
  and msg_qbytes fields of the underlying message queue data structure.
  
  Changing the data structure will require that PHP be running as the same user that created the
  queue, owns the queue (as determined by the existing msg_perm.xxx fields), or be running with root
  privileges. root privileges are required to raise the msg_qbytes values above the system defined
  limit.

<comment>Param:</comment>
  <info>SysvMessageQueue</info>  <strong>$queue</strong>  The message queue.
  <info>array           </info>  <strong>$data </strong>  You specify the values you require by setting the value of the keys that
                            you require in the <strong>$data</strong> array.

<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>msg_remove_queue()</strong>
   * <strong>msg_receive()</strong>
   * <strong>msg_stat_queue()</strong>
   * <strong>msg_get_queue()</strong>


id: msg_stat_queue
type: function
doc:
<comment>Description:</comment>
  Returns information from the message queue data structure
  
  <strong>msg_stat_queue()</strong> returns the message queue meta data for the message queue specified by the
  <strong>$queue</strong>. This is useful, for example, to determine which process sent the message that was just
  received.

<comment>Param:</comment>
  <info>SysvMessageQueue</info>  <strong>$queue</strong>  The message queue.

<comment>Return:</comment>
  <info>arrayfalse</info>  On success, the return value is an array whose keys and values have the following
              meanings: Array structure for msg_stat_queue<return>msg_perm.uid</return> The uid of the owner of the
              queue. <return>msg_perm.gid</return> The gid of the owner of the queue. <return>msg_perm.mode</return> The file access
              mode of the queue. <return>msg_stime</return> The time that the last message was sent to the queue.
              <return>msg_rtime</return> The time that the last message was received from the queue. <return>msg_ctime</return> The
              time that the queue was last changed. <return>msg_qnum</return> The number of messages waiting to be
              read from the queue. <return>msg_qbytes</return> The maximum number of bytes allowed in one message
              queue. On Linux, this value may be read and modified via /proc/sys/kernel/msgmnb.
              <return>msg_lspid</return> The pid of the process that sent the last message to the queue. <return>msg_lrpid</return>
              The pid of the process that received the last message from the queue.
              
              Returns <info>false</info> on failure.

<comment>See Also:</comment>
   * <strong>msg_remove_queue()</strong>
   * <strong>msg_receive()</strong>
   * <strong>msg_get_queue()</strong>
   * <strong>msg_set_queue()</strong>


id: mt_getrandmax
type: function
doc:
<comment>Description:</comment>
  Show largest possible random value
  
  Returns the maximum value that can be returned by a call to <strong>mt_rand()</strong>.

<comment>Return:</comment>
  <info>int</info>  Returns the maximum random value returned by a call to <strong>mt_rand()</strong> without arguments, which is
       the maximum value  that can be used for its <strong>$max</strong> parameter without the result being scaled up
       (and therefore less random).

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


id: mt_rand
type: function
doc:
<comment>Description:</comment>
  Generate a random value via the Mersenne Twister Random Number Generator
  
  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.
  
  Many random number generators of older libcs have dubious or unknown characteristics and are slow.
  The <strong>mt_rand()</strong> function is a drop-in replacement for the older <strong>rand()</strong>. It uses a random number
  generator with known characteristics using the Mersenne Twister, which will produce random numbers
  four times faster than what the average libc rand() provides.
  
  If called without the optional <strong>$min</strong>, <strong>$max</strong> arguments <strong>mt_rand()</strong> returns a pseudo-random value
  between 0 and <strong>mt_getrandmax()</strong>.  If you want a random number between 5 and 15 (inclusive), for
  example, use <return>mt_rand(5, 15)</return>.

<comment>Param:</comment>
  <info>int</info>  <strong>$min</strong>  Optional lowest value to be returned (default: 0)
  <info>int</info>  <strong>$max</strong>  Optional highest value to be returned (default: <strong>mt_getrandmax()</strong>)

<comment>Return:</comment>
  <info>int</info>  A random integer value between <strong>$min</strong> (or 0) and <strong>$max</strong> (or <strong>mt_getrandmax()</strong>, inclusive), or <info>false</info>
       if <strong>$max</strong> is less than <strong>$min</strong>.

<comment>See Also:</comment>
   * <strong>mt_srand()</strong>
   * <strong>mt_getrandmax()</strong>
   * <strong>random_int()</strong>
   * <strong>random_bytes()</strong>
   * <strong>openssl_random_pseudo_bytes()</strong>
   * <strong>rand()</strong>


id: mt_srand
type: function
doc:
<comment>Description:</comment>
  Seeds the Mersenne Twister 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.

<comment>Param:</comment>
  <info>int</info>  <strong>$seed</strong>  An arbitrary <info>int</info> seed value.
  <info>int</info>  <strong>$mode</strong>  Use one of the following constants to specify the implementation of the algorithm to
              use. ConstantDescriere<info>MT_RAND_MT19937</info> Uses the fixed, correct, Mersenne Twister
              implementation, available as of PHP 7.1.0. <info>MT_RAND_PHP</info> Uses an incorrect Mersenne
              Twister implementation which was used as the default up till PHP 7.1.0.  This mode is
              available for backward compatibility.

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

<comment>See Also:</comment>
   * <strong>mt_rand()</strong>
   * <strong>mt_getrandmax()</strong>
   * <strong>srand()</strong>


id: mysql_affected_rows
type: function
doc:
<comment>Description:</comment>
  Obține numărul de rânduri afectate de precedenta operațiune MySQL
  
  Obține numărul de rânduri afectate de ultima interpelare INSERT, UPDATE, REPLACE sau DELETE
  asociată cu <strong>$link_identifier</strong>.

<comment>Param:</comment>
  <info></info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                      legăturii nu este specificat, se presupune că este ultima legătură deschisă cu
                      ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                      de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                      ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                      stabilită, se va genera o eroare de nivelul <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>int</info>  Întoarce numărul de rânduri afectate în caz de succes și -1 dacă ultima interpelare a eșuat.
       
       Dacă ultima interpelare a fost o interpelare DELETE fără o clauză WHERE, atunci toate
       rândurile din tabel au fost eliminate, dar această funcție va întoarce zero în cazul
       versiunilor MySQL înainte de 4.1.2.
       
       La utilizarea UPDATE, MySQL nu va reînnoi coloanele unde valoarea nouă coincide cu cea veche.
       Aceasta crează posibilitatea că <strong>mysql_affected_rows()</strong> nu va coincide cu numărul de rânduri ce
       se potrivesc condiției de selectare, dar va fi doar numărul de rânduri ce au fost direct
       afectate de interpelare.
       
       Interpelarea REPLACE întâi elimină înregistrarea cu aceeași cheie primară, apoi inserează
       noua înregistrare. Această funcție întoarce numărul înregistrărilor eliminate plus numărul
       înregistrărilor inserate.
       
       În cazul interpelărilor de tip "INSERT ... ON DUPLICATE KEY UPDATE", valoarea întoarsă va fi
       <return>1</return> dacă a fost efectuată inserare, sau <return>2</return> dacă a fost actualizat un rând existent.

<comment>See Also:</comment>
   * <strong>mysql_num_rows()</strong>
   * <strong>mysql_info()</strong>


id: mysql_client_encoding
type: function
doc:
<comment>Description:</comment>
  Întoarce denumirea setului de caractere
  
  Întoarce valoarea variabilei <return>character_set</return> din MySQL.

<comment>Param:</comment>
  <info></info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                      legăturii nu este specificat, se presupune că este ultima legătură deschisă cu
                      ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                      de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                      ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                      stabilită, se va genera o eroare de nivelul <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>string</info>  Întoarce denumirea setului de caractere implicit pentru conexiunea curentă.

<comment>See Also:</comment>
   * <strong>mysql_set_charset()</strong>
   * <strong>mysql_real_escape_string()</strong>


id: mysql_close
type: function
doc:
<comment>Description:</comment>
  Închide conexiunea MySQL
  
  <strong>mysql_close()</strong> închide conexiunea non-persistentă către serverul MySQL, care este asociată cu
  identificatorul conexiunii specificat. Dacă <strong>$link_identifier</strong> nu este specificat, este utilizată
  ultima conexiune deschisă.
  
  Conexiunile MySQL non-persistente deschise și seturile de rezultate sunt automat
  distruse atunci când un script PHP își încheie execuția. Deci închiderea în mod
  explicit a conexiunilor deschise și eliberarea seturilor de rezultate sunt
  opționale, însă sunt recomandata. Aceasta va întoarce imediat resursele către PHP
  și MySQL, ceea ce poate îmbunătăți performața. Pentru informații suplimentare accesați
  eliberarea resurselor

<comment>Param:</comment>
  <info></info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă
                      link identifier nu este specificat, se subînțelege ultima referință deschisă
                      cu
                      ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită sau stabilită
                      nici o conexiune, este generată o eroare de tip <info>E_WARNING</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>mysql_connect()</strong>
   * <strong>mysql_free_result()</strong>


id: mysql_connect
type: function
doc:
<comment>Description:</comment>
  Deschide o conexiune la un server MySQL
  
  Deschide sau reutilizează o conexiune la un server MySQL.

<comment>Param:</comment>
  <info>string</info>  <strong>$server      </strong>  Serverul MySQL. De asemenea se poate include și numărul portului. De ex.
                         "hostname:port" sau o cale către un socket local de ex.
                         ":/calea/spre/socket" pentru localhost.
                         
                         Dacă directiva PHP  mysql.default_host nu este definită (implicit), atunci
                         valoarea implicită este 'localhost:3306'. În modul SQL securizat acest
                         parametru e ignorat și este utilizată întotdeauna valoarea
                         'localhost:3306'.
  <info>string</info>  <strong>$username    </strong>  Numele de utilizator. Valoarea implicită este definită de
                         mysql.default_user. În modul SQL securizat acest parametru e ignorat și
                         este utilizat numele utilizatorului sub care rulează serverul.
  <info>string</info>  <strong>$password    </strong>  Parola. Valoarea implicită este definită de mysql.default_password. În
                         modul SQL securizat acest parametru e ignorat și este utilizată o parolă
                         vidă.
  <info>bool  </info>  <strong>$new_link    </strong>  Dacă se efectuează un apel repetat al <strong>mysql_connect()</strong> cu aceleași
                         argumente, nu se crează o legătură nouă, dar va fi întors identificatorul
                         legăturii deja deschise. Parametrul <strong>$new_link</strong> modifică acest comportament
                         și indică <strong>mysql_connect()</strong> întotdeauna să deschidă o legătură nouă, chiar
                         dacă <strong>mysql_connect()</strong> a fost apelat anterior cu aceiași parametri. În modul
                         SQL securizat acest parametru este ignorat.
  <info>int   </info>  <strong>$client_flags</strong>  Parametrul <strong>$client_flags</strong> poate fi o combinație a următoarelor constante:
                         128 (permite prelucrarea <return>LOAD DATA LOCAL</return>), <info>MYSQL_CLIENT_SSL</info>,
                         <info>MYSQL_CLIENT_COMPRESS</info>, <info>MYSQL_CLIENT_IGNORE_SPACE</info> sau
                         <info>MYSQL_CLIENT_INTERACTIVE</info>. Citiți secțiunea despre  pentru informații
                         suplimentare. În modul SQL securizat acest parametru este ignorat.

<comment>Return:</comment>
  <info>resource</info>  Întoarce un identificator al legăturii MySQL în cazul succesului, sau <info>false</info> în cazul
            eșecului.

<comment>See Also:</comment>
   * <strong>mysql_pconnect()</strong>
   * <strong>mysql_close()</strong>


id: mysql_create_db
type: function
doc:
<comment>Description:</comment>
  Creează o bază de date MySQL
  
  <strong>mysql_create_db()</strong> încearcă să creeze o bază de date nouă pe serverul asociat cu identificatorul
  conexiunii specificat.

<comment>Param:</comment>
  <info>string</info>  <strong>$database_name  </strong>  Denumirea bazei de date ce va fi creată.
  <info>      </info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                            legăturii nu este specificat, se presupune că este ultima legătură
                            deschisă cu
                            ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                            de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                            ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                            stabilită, se va genera o eroare de nivelul <info>E_WARNING</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>mysql_query()</strong>
   * <strong>mysql_select_db()</strong>


id: mysql_data_seek
type: function
doc:
<comment>Description:</comment>
  Move internal result pointer
  
  <strong>mysql_data_seek()</strong> moves the internal row pointer of the MySQL result associated with the specified
  result identifier to point to the specified row number.  The next call to a MySQL fetch function,
  such as <strong>mysql_fetch_assoc()</strong>, would return that row.
  
  <strong>$row_number</strong> starts at 0. The  <strong>$row_number</strong> should be a value in the range from 0 to
  <strong>mysql_num_rows()</strong> - 1. However if the result set  is empty (<strong>mysql_num_rows()</strong> == 0), a seek to 0
  will  fail with an <info>E_WARNING</info> and  <strong>mysql_data_seek()</strong> will return <info>false</info>.

<comment>Param:</comment>
  <info>resource</info>  <strong>$result    </strong>  Rezultatul de tip <info>resource</info>, care este
                         evaluat. Acest rezultat provine de la apelul funcției <strong>mysql_query
                         ()</strong>.
  <info>int     </info>  <strong>$row_number</strong>  The desired row number of the new result pointer.

<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>mysql_query()</strong>
   * <strong>mysql_num_rows()</strong>
   * <strong>mysql_fetch_row()</strong>
   * <strong>mysql_fetch_assoc()</strong>
   * <strong>mysql_fetch_array()</strong>
   * <strong>mysql_fetch_object()</strong>


id: mysql_db_name
type: function
doc:
<comment>Description:</comment>
  Retrieves database name from the call to mysql_list_dbs
  
  Retrieve the database name from a call to  <strong>mysql_list_dbs()</strong>.

<comment>Param:</comment>
  <info>resource</info>  <strong>$result</strong>  The result pointer from a call to <strong>mysql_list_dbs()</strong>.
  <info>int     </info>  <strong>$row   </strong>  The index into the result set.
  <info>mixed   </info>  <strong>$field </strong>  The field name.

<comment>Return:</comment>
  <info>string</info>  Returns the database name on success, and <info>false</info> on failure. If <info>false</info> is returned, use
          <strong>mysql_error()</strong> to determine the nature of the error.

<comment>See Also:</comment>
   * <strong>mysql_list_dbs()</strong>
   * <strong>mysql_tablename()</strong>


id: mysql_db_query
type: function
doc:
<comment>Description:</comment>
  Selects a database and executes a query on it
  
  <strong>mysql_db_query()</strong> selects a database, and executes a  query on it.

<comment>Param:</comment>
  <info>string</info>  <strong>$database       </strong>  The name of the database that will be selected.
  <info>string</info>  <strong>$query          </strong>  The MySQL query.
                            
                            Data inside the query should be properly escaped.
  <info>      </info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                            legăturii nu este specificat, se presupune că este ultima legătură
                            deschisă cu
                            ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                            de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                            ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                            stabilită, se va genera o eroare de nivelul <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>resourcebool</info>  Returns a positive MySQL result resource to the query result, or <info>false</info> on error. The
                function also returns <info>true</info>/<info>false</info> for <return>INSERT</return>/<return>UPDATE</return>/<return>DELETE</return> queries to indicate
                success/failure.

<comment>See Also:</comment>
   * <strong>mysql_query()</strong>
   * <strong>mysql_select_db()</strong>


id: mysql_drop_db
type: function
doc:
<comment>Description:</comment>
  Drop (delete) a MySQL database
  
  <strong>mysql_drop_db()</strong> attempts to drop (remove) an entire database from the server associated with the
  specified link identifier. This function is deprecated, it is preferable to use  <strong>mysql_query()</strong> to
  issue an sql  <return>DROP DATABASE</return> statement instead.

<comment>Param:</comment>
  <info>string</info>  <strong>$database_name  </strong>  The name of the database that will be deleted.
  <info>      </info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                            legăturii nu este specificat, se presupune că este ultima legătură
                            deschisă cu
                            ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                            de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                            ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                            stabilită, se va genera o eroare de nivelul <info>E_WARNING</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>mysql_query()</strong>


id: mysql_errno
type: function
doc:
<comment>Description:</comment>
  Returns the numerical value of the error message from previous MySQL operation
  
  Returns the error number from the last MySQL function.
  
  Errors coming back from the MySQL database backend no longer issue warnings. Instead, use
  <strong>mysql_errno()</strong> to retrieve the error code. Note that this function only returns the error code from
  the most recently executed MySQL function (not including <strong>mysql_error()</strong> and <strong>mysql_errno()</strong>), so if
  you want to use it, make sure you check the value before calling another MySQL function.

<comment>Param:</comment>
  <info></info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                      legăturii nu este specificat, se presupune că este ultima legătură deschisă cu
                      ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                      de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                      ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                      stabilită, se va genera o eroare de nivelul <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>int</info>  Returns the error number from the last MySQL function, or <return>0</return> (zero) if no error occurred.

<comment>See Also:</comment>
   * <strong>mysql_error()</strong>
   * MySQL error codes


id: mysql_error
type: function
doc:
<comment>Description:</comment>
  Returns the text of the error message from previous MySQL operation
  
  Returns the error text from the last MySQL function. Errors coming back from the MySQL database
  backend no longer issue warnings. Instead, use <strong>mysql_error()</strong> to retrieve the error text. Note that
  this function only returns the error text from the most recently executed MySQL function (not
  including <strong>mysql_error()</strong> and <strong>mysql_errno()</strong>), so if you want to use it, make sure you check the
  value before calling another MySQL function.

<comment>Param:</comment>
  <info></info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                      legăturii nu este specificat, se presupune că este ultima legătură deschisă cu
                      ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                      de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                      ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                      stabilită, se va genera o eroare de nivelul <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>string</info>  Returns the error text from the last MySQL function, or <return>''</return> (empty string) if no error
          occurred.

<comment>See Also:</comment>
   * <strong>mysql_errno()</strong>
   * MySQL error codes


id: mysql_escape_string
type: function
doc:
<comment>Description:</comment>
  Escapeaza un string pentru fi folosit in mysql_query
  
  Aceasta functie va escapa variabila <strong>$unescaped_string</strong>, asa incat sa poata fi folosita in functia
  <strong>mysql_query()</strong> intr-un mod securizat. Aceasta functie este va fi scoasa din uz.
  
  Aceasta functie este identica cu <strong>mysql_real_escape_string()</strong> cu exceptia ca
  <strong>mysql_real_escape_string()</strong> se foloseste de conexiunea curenta si escapeaza string-ul in fuctie de
  encodingul (charset-ul) setat. <strong>mysql_escape_string()</strong> nu ia ca argument conexiunea curenta si nu
  respecta encodingul setat la momentul respectiv.

<comment>Param:</comment>
  <info>string</info>  <strong>$unescaped_string</strong>  String-ul ce urmeaza sa fie escapat.

<comment>Return:</comment>
  <info>string</info>  Returneaza string-ul escapat.

<comment>See Also:</comment>
   * <strong>mysql_real_escape_string()</strong>
   * <strong>addslashes()</strong>
   * Directiva magic_quotes_gpc.


id: mysql_fetch_array
type: function
doc:
<comment>Description:</comment>
  Fetch a result row as an associative array, a numeric array, or both
  
  Returns an array that corresponds to the fetched row and moves the internal data pointer ahead.

<comment>Param:</comment>
  <info>resource</info>  <strong>$result     </strong>  Rezultatul de tip <info>resource</info>, care este
                          evaluat. Acest rezultat provine de la apelul funcției <strong>mysql_query
                          ()</strong>.
  <info>int     </info>  <strong>$result_type</strong>  The type of array that is to be fetched. It's a constant and can take the
                          following values: <info>MYSQL_ASSOC</info>,  <info>MYSQL_NUM</info>, and <info>MYSQL_BOTH</info>.

<comment>Return:</comment>
  <info>array</info>  Returns an array of strings that corresponds to the fetched row, or <info>false</info> if there are no
         more rows. The type of returned array depends on how <strong>$result_type</strong> is defined. By using
         <info>MYSQL_BOTH</info> (default), you'll get an array with both  associative and number indices. Using
         <info>MYSQL_ASSOC</info>, you  only get associative indices (as <strong>mysql_fetch_assoc()</strong>  works), using
         <info>MYSQL_NUM</info>, you only get number indices  (as <strong>mysql_fetch_row()</strong> works).
         
         If two or more columns of the result have the same field names, the last column will take
         precedence. To access the other column(s) of the same name, you must use the numeric index
         of the column or make an alias for the column. For aliased columns, you cannot access the
         contents with the original column name.

<comment>See Also:</comment>
   * <strong>mysql_fetch_row()</strong>
   * <strong>mysql_fetch_assoc()</strong>
   * <strong>mysql_data_seek()</strong>
   * <strong>mysql_query()</strong>


id: mysql_fetch_assoc
type: function
doc:
<comment>Description:</comment>
  Fetch a result row as an associative array
  
  Returns an associative array that corresponds to the fetched row and moves the internal data
  pointer ahead. <strong>mysql_fetch_assoc()</strong> is equivalent to calling <strong>mysql_fetch_array()</strong> with MYSQL_ASSOC
  for the optional second parameter. It only returns an associative array.

<comment>Param:</comment>
  <info>resource</info>  <strong>$result</strong>  Rezultatul de tip <info>resource</info>, care este
                     evaluat. Acest rezultat provine de la apelul funcției <strong>mysql_query
                     ()</strong>.

<comment>Return:</comment>
  <info>array</info>  Returns an associative array of strings that corresponds to the fetched row, or <info>false</info> if
         there are no more rows.
         
         If two or more columns of the result have the same field names, the last column will take
         precedence. To access the other column(s) of the same name, you either need to access the
         result with numeric indices by using <strong>mysql_fetch_row()</strong> or add alias names. See the example
         at the <strong>mysql_fetch_array()</strong> description about aliases.

<comment>See Also:</comment>
   * <strong>mysql_fetch_row()</strong>
   * <strong>mysql_fetch_array()</strong>
   * <strong>mysql_data_seek()</strong>
   * <strong>mysql_query()</strong>
   * <strong>mysql_error()</strong>


id: mysql_fetch_field
type: function
doc:
<comment>Description:</comment>
  Get column information from a result and return as an object
  
  Returns an object containing field information. This function can be used  to obtain information
  about fields in the provided query result.

<comment>Param:</comment>
  <info>resource</info>  <strong>$result      </strong>  Rezultatul de tip <info>resource</info>, care este
                           evaluat. Acest rezultat provine de la apelul funcției <strong>mysql_query
                           ()</strong>.
  <info>int     </info>  <strong>$field_offset</strong>  The numerical field offset. If the field offset is not specified, the
                           next field that was not yet retrieved by this function is retrieved.  The
                           <strong>$field_offset</strong> starts at <return>0</return>.

<comment>Return:</comment>
  <info>object</info>  Returns an <info>object</info> containing field information. The properties  of the object are:
          
           name - column name  table - name of the table the column belongs to, which is the alias
          name if one is defined  max_length - maximum length of the column  not_null - 1 if the
          column cannot be <info>null</info>  primary_key - 1 if the column is a primary key  unique_key - 1 if
          the column is a unique key  multiple_key - 1 if the column is a non-unique key  numeric -
          1 if the column is numeric  blob - 1 if the column is a BLOB  type - the type of the
          column  unsigned - 1 if the column is unsigned  zerofill - 1 if the column is zero-filled
          
          name - column name
          
          table - name of the table the column belongs to, which is the alias name if one is defined
          
          max_length - maximum length of the column
          
          not_null - 1 if the column cannot be <info>null</info>
          
          primary_key - 1 if the column is a primary key
          
          unique_key - 1 if the column is a unique key
          
          multiple_key - 1 if the column is a non-unique key
          
          numeric - 1 if the column is numeric
          
          blob - 1 if the column is a BLOB
          
          type - the type of the column
          
          unsigned - 1 if the column is unsigned
          
          zerofill - 1 if the column is zero-filled

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


id: mysql_fetch_lengths
type: function
doc:
<comment>Description:</comment>
  Get the length of each output in a result
  
  Returns an array that corresponds to the lengths of each field in the last row fetched by MySQL.
  
  <strong>mysql_fetch_lengths()</strong> stores the lengths of each result column in the last row returned by
  <strong>mysql_fetch_row()</strong>, <strong>mysql_fetch_assoc()</strong>, <strong>mysql_fetch_array()</strong>, and <strong>mysql_fetch_object()</strong> in an array,
  starting at offset 0.

<comment>Param:</comment>
  <info>resource</info>  <strong>$result</strong>  Rezultatul de tip <info>resource</info>, care este
                     evaluat. Acest rezultat provine de la apelul funcției <strong>mysql_query
                     ()</strong>.

<comment>Return:</comment>
  <info>arrayfalse</info>  An <info>array</info> of lengths on success sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>mysql_field_len()</strong>
   * <strong>mysql_fetch_row()</strong>
   * <strong>strlen()</strong>


id: mysql_fetch_object
type: function
doc:
<comment>Description:</comment>
  Fetch a result row as an object
  
  Returns an object with properties that correspond to the fetched row and moves the internal data
  pointer ahead.

<comment>Param:</comment>
  <info>resource</info>  <strong>$result    </strong>  Rezultatul de tip <info>resource</info>, care este
                         evaluat. Acest rezultat provine de la apelul funcției <strong>mysql_query
                         ()</strong>.
  <info>string  </info>  <strong>$class_name</strong>  The name of the class to instantiate, set the properties of and return. If
                         not specified, a <class>stdClass</class> object is returned.
  <info>array   </info>  <strong>$params    </strong>  An optional <info>array</info> of parameters to pass to the constructor for <strong>$class_name</strong>
                         objects.

<comment>Return:</comment>
  <info>object</info>  Returns an <info>object</info> with string properties that correspond to the fetched row, or <info>false</info> if
          there are no more rows.

<comment>See Also:</comment>
   * <strong>mysql_fetch_array()</strong>
   * <strong>mysql_fetch_assoc()</strong>
   * <strong>mysql_fetch_row()</strong>
   * <strong>mysql_data_seek()</strong>
   * <strong>mysql_query()</strong>


id: mysql_fetch_row
type: function
doc:
<comment>Description:</comment>
  Get a result row as an enumerated array
  
  Returns a numerical array that corresponds to the fetched row and moves the internal data pointer
  ahead.

<comment>Param:</comment>
  <info>resource</info>  <strong>$result</strong>  Rezultatul de tip <info>resource</info>, care este
                     evaluat. Acest rezultat provine de la apelul funcției <strong>mysql_query
                     ()</strong>.

<comment>Return:</comment>
  <info>array</info>  Returns an numerical array of strings that corresponds to the fetched row, or <info>false</info> if
         there are no more rows.
         
         <strong>mysql_fetch_row()</strong> fetches one row of data from the result associated with the specified
         result identifier.  The row is returned as an array.  Each result column is stored in an
         array offset, starting at offset 0.

<comment>See Also:</comment>
   * <strong>mysql_fetch_array()</strong>
   * <strong>mysql_fetch_assoc()</strong>
   * <strong>mysql_fetch_object()</strong>
   * <strong>mysql_data_seek()</strong>
   * <strong>mysql_fetch_lengths()</strong>
   * <strong>mysql_result()</strong>


id: mysql_field_flags
type: function
doc:
<comment>Description:</comment>
  Get the flags associated with the specified field in a result
  
  <strong>mysql_field_flags()</strong> returns the field flags of the specified field. The flags are reported as a
  single word per flag separated by a single space, so that you can split the returned value using
  <strong>explode()</strong>.

<comment>Param:</comment>
  <info>resource</info>  <strong>$result      </strong>  Rezultatul de tip <info>resource</info>, care este
                           evaluat. Acest rezultat provine de la apelul funcției <strong>mysql_query
                           ()</strong>.
  <info>int     </info>  <strong>$field_offset</strong>  Deplasamentul numeric al câmpului. <strong>$
                           field_offset</strong> începe de la <return>0</return>. Dacă <strong>$
                           field_offset</strong> nu există, se generează de asemenea o eroare de nivel
                           <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>stringfalse</info>  Returns a string of flags associated with the result sau <info>false</info> în cazul eșecului.
               
               The following flags are reported, if your version of MySQL is current enough to
               support them: <return>"not_null"</return>,  <return>"primary_key"</return>, <return>"unique_key"</return>,  <return>"multiple_key"</return>, <return>"blob"</return>,
               <return>"unsigned"</return>, <return>"zerofill"</return>, <return>"binary"</return>, <return>"enum"</return>,  <return>"auto_increment"</return> and <return>"timestamp"</return>.

<comment>See Also:</comment>
   * <strong>mysql_field_type()</strong>
   * <strong>mysql_field_len()</strong>


id: mysql_field_len
type: function
doc:
<comment>Description:</comment>
  Returns the length of the specified field
  
  <strong>mysql_field_len()</strong> returns the length of the specified field.

<comment>Param:</comment>
  <info>resource</info>  <strong>$result      </strong>  Rezultatul de tip <info>resource</info>, care este
                           evaluat. Acest rezultat provine de la apelul funcției <strong>mysql_query
                           ()</strong>.
  <info>int     </info>  <strong>$field_offset</strong>  Deplasamentul numeric al câmpului. <strong>$
                           field_offset</strong> începe de la <return>0</return>. Dacă <strong>$
                           field_offset</strong> nu există, se generează de asemenea o eroare de nivel
                           <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>intfalse</info>  The length of the specified field index on success sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>mysql_fetch_lengths()</strong>
   * <strong>strlen()</strong>


id: mysql_field_name
type: function
doc:
<comment>Description:</comment>
  Get the name of the specified field in a result
  
  <strong>mysql_field_name()</strong> returns the name of the specified field index.

<comment>Param:</comment>
  <info>resource</info>  <strong>$result      </strong>  Rezultatul de tip <info>resource</info>, care este
                           evaluat. Acest rezultat provine de la apelul funcției <strong>mysql_query
                           ()</strong>.
  <info>int     </info>  <strong>$field_offset</strong>  Deplasamentul numeric al câmpului. <strong>$
                           field_offset</strong> începe de la <return>0</return>. Dacă <strong>$
                           field_offset</strong> nu există, se generează de asemenea o eroare de nivel
                           <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>stringfalse</info>  The name of the specified field index on success sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>mysql_field_type()</strong>
   * <strong>mysql_field_len()</strong>


id: mysql_field_seek
type: function
doc:
<comment>Description:</comment>
  Stabilește indicatorul rezultatului la deplasamentul câmpului specificat
  
  Trece la deplasamentul câmpului specificat. Dacă următorul apel la <strong>mysql_fetch_field()</strong> nu include
  un deplasament al câmpului, deplasamentul câmpului specificat în <strong>mysql_field_seek()</strong> va fi întors.

<comment>Param:</comment>
  <info>resource</info>  <strong>$result      </strong>  Rezultatul de tip <info>resource</info>, care este
                           evaluat. Acest rezultat provine de la apelul funcției <strong>mysql_query
                           ()</strong>.
  <info>int     </info>  <strong>$field_offset</strong>  Deplasamentul numeric al câmpului. <strong>$
                           field_offset</strong> începe de la <return>0</return>. Dacă <strong>$
                           field_offset</strong> nu există, se generează de asemenea o eroare de nivel
                           <info>E_WARNING</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>mysql_fetch_field()</strong>


id: mysql_field_table
type: function
doc:
<comment>Description:</comment>
  Get name of the table the specified field is in
  
  Returns the name of the table that the specified field is in.

<comment>Param:</comment>
  <info>resource</info>  <strong>$result      </strong>  Rezultatul de tip <info>resource</info>, care este
                           evaluat. Acest rezultat provine de la apelul funcției <strong>mysql_query
                           ()</strong>.
  <info>int     </info>  <strong>$field_offset</strong>  Deplasamentul numeric al câmpului. <strong>$
                           field_offset</strong> începe de la <return>0</return>. Dacă <strong>$
                           field_offset</strong> nu există, se generează de asemenea o eroare de nivel
                           <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>string</info>  The name of the table on success.

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


id: mysql_field_type
type: function
doc:
<comment>Description:</comment>
  Get the type of the specified field in a result
  
  <strong>mysql_field_type()</strong> is similar to the <strong>mysql_field_name()</strong> function. The arguments are identical, but
  the field type is returned instead.

<comment>Param:</comment>
  <info>resource</info>  <strong>$result      </strong>  Rezultatul de tip <info>resource</info>, care este
                           evaluat. Acest rezultat provine de la apelul funcției <strong>mysql_query
                           ()</strong>.
  <info>int     </info>  <strong>$field_offset</strong>  Deplasamentul numeric al câmpului. <strong>$
                           field_offset</strong> începe de la <return>0</return>. Dacă <strong>$
                           field_offset</strong> nu există, se generează de asemenea o eroare de nivel
                           <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>string</info>  The returned field type will be one of <return>"int"</return>, <return>"real"</return>,  <return>"string"</return>, <return>"blob"</return>, and others as
          detailed in the MySQL documentation.

<comment>See Also:</comment>
   * <strong>mysql_field_name()</strong>
   * <strong>mysql_field_len()</strong>


id: mysql_free_result
type: function
doc:
<comment>Description:</comment>
  Free result memory
  
  <strong>mysql_free_result()</strong> will free all memory associated with the result identifier <strong>$result</strong>.
  
  <strong>mysql_free_result()</strong> only needs to be called if you are concerned about how much memory is being
  used for queries that return large result sets.  All associated result memory is automatically
  freed at the end of the script's execution.

<comment>Param:</comment>
  <info>resource</info>  <strong>$result</strong>  Rezultatul de tip <info>resource</info>, care este
                     evaluat. Acest rezultat provine de la apelul funcției <strong>mysql_query
                     ()</strong>.

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului.
        
        If a non-resource is used for the <strong>$result</strong>, an error of level E_WARNING will be emitted.
        It's worth noting that <strong>mysql_query()</strong> only returns a <info>resource</info> for SELECT, SHOW, EXPLAIN, and
        DESCRIBE queries.

<comment>See Also:</comment>
   * <strong>mysql_query()</strong>
   * <strong>is_resource()</strong>


id: mysql_get_client_info
type: function
doc:
<comment>Description:</comment>
  Obține informația clientului MySQL
  
  <strong>mysql_get_client_info()</strong> întoarce un string care reprezintă versiunea bibliotecii client.

<comment>Return:</comment>
  <info>string</info>  Versiunea clientului MySQL.

<comment>See Also:</comment>
   * <strong>mysql_get_host_info()</strong>
   * <strong>mysql_get_proto_info()</strong>
   * <strong>mysql_get_server_info()</strong>


id: mysql_get_host_info
type: function
doc:
<comment>Description:</comment>
  Get MySQL host info
  
  Describes the type of connection in use for the connection, including the server host name.

<comment>Param:</comment>
  <info></info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                      legăturii nu este specificat, se presupune că este ultima legătură deschisă cu
                      ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                      de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                      ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                      stabilită, se va genera o eroare de nivelul <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>stringfalse</info>  Returns a string describing the type of MySQL connection in use for the connection
               sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>mysql_get_client_info()</strong>
   * <strong>mysql_get_proto_info()</strong>
   * <strong>mysql_get_server_info()</strong>


id: mysql_get_proto_info
type: function
doc:
<comment>Description:</comment>
  Get MySQL protocol info
  
  Retrieves the MySQL protocol.

<comment>Param:</comment>
  <info></info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                      legăturii nu este specificat, se presupune că este ultima legătură deschisă cu
                      ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                      de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                      ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                      stabilită, se va genera o eroare de nivelul <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>intfalse</info>  Returns the MySQL protocol on success sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>mysql_get_client_info()</strong>
   * <strong>mysql_get_host_info()</strong>
   * <strong>mysql_get_server_info()</strong>


id: mysql_get_server_info
type: function
doc:
<comment>Description:</comment>
  Get MySQL server info
  
  Retrieves the MySQL server version.

<comment>Param:</comment>
  <info></info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                      legăturii nu este specificat, se presupune că este ultima legătură deschisă cu
                      ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                      de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                      ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                      stabilită, se va genera o eroare de nivelul <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>stringfalse</info>  Returns the MySQL server version on success sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>mysql_get_client_info()</strong>
   * <strong>mysql_get_host_info()</strong>
   * <strong>mysql_get_proto_info()</strong>
   * <strong>phpversion()</strong>


id: mysql_info
type: function
doc:
<comment>Description:</comment>
  Get information about the most recent query
  
  Returns detailed information about the last query.

<comment>Param:</comment>
  <info></info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                      legăturii nu este specificat, se presupune că este ultima legătură deschisă cu
                      ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                      de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                      ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                      stabilită, se va genera o eroare de nivelul <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>string</info>  Returns information about the statement on success, or <info>false</info> on failure. See the example
          below for which statements provide information, and what the returned value may look like.
          Statements that are not listed  will return <info>false</info>.

<comment>See Also:</comment>
   * <strong>mysql_affected_rows()</strong>
   * <strong>mysql_insert_id()</strong>
   * <strong>mysql_stat()</strong>


id: mysql_insert_id
type: function
doc:
<comment>Description:</comment>
  Get the ID generated in the last query
  
  Retrieves the ID generated for an AUTO_INCREMENT column by the previous  query (usually INSERT).

<comment>Param:</comment>
  <info></info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                      legăturii nu este specificat, se presupune că este ultima legătură deschisă cu
                      ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                      de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                      ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                      stabilită, se va genera o eroare de nivelul <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>int</info>  The ID generated for an AUTO_INCREMENT column by the previous  query on success, <return>0</return> if the
       previous query does not generate an AUTO_INCREMENT value, or <info>false</info> if no MySQL connection was
       established.

<comment>See Also:</comment>
   * <strong>mysql_query()</strong>
   * <strong>mysql_info()</strong>


id: mysql_list_dbs
type: function
doc:
<comment>Description:</comment>
  List databases available on a MySQL server
  
  Returns a result pointer containing the databases available from the  current mysql daemon.

<comment>Param:</comment>
  <info></info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                      legăturii nu este specificat, se presupune că este ultima legătură deschisă cu
                      ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                      de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                      ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                      stabilită, se va genera o eroare de nivelul <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>resource</info>  Returns a result pointer <info>resource</info> on success, or <info>false</info> on failure. Use the
            <strong>mysql_tablename()</strong> function to traverse  this result pointer, or any function for result
            tables, such as  <strong>mysql_fetch_array()</strong>.

<comment>See Also:</comment>
   * <strong>mysql_db_name()</strong>
   * <strong>mysql_select_db()</strong>


id: mysql_list_fields
type: function
doc:
<comment>Description:</comment>
  List MySQL table fields
  
  Retrieves information about the given table name.
  
  This function is deprecated. It is preferable to use  <strong>mysql_query()</strong> to issue an SQL <return>SHOW COLUMNS
  FROM  table [LIKE 'name']</return> statement instead.

<comment>Param:</comment>
  <info>string</info>  <strong>$database_name  </strong>  The name of the database that's being queried.
  <info>string</info>  <strong>$table_name     </strong>  The name of the table that's being queried.
  <info>      </info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                            legăturii nu este specificat, se presupune că este ultima legătură
                            deschisă cu
                            ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                            de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                            ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                            stabilită, se va genera o eroare de nivelul <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>resource</info>  A result pointer <info>resource</info> on success, or <info>false</info> on failure.
            
            The returned result can be used with <strong>mysql_field_flags()</strong>, <strong>mysql_field_len()</strong>,
            <strong>mysql_field_name()</strong> și <strong>mysql_field_type()</strong>.

<comment>See Also:</comment>
   * <strong>mysql_field_flags()</strong>
   * <strong>mysql_info()</strong>


id: mysql_list_processes
type: function
doc:
<comment>Description:</comment>
  List MySQL processes
  
  Retrieves the current MySQL server threads.

<comment>Param:</comment>
  <info></info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                      legăturii nu este specificat, se presupune că este ultima legătură deschisă cu
                      ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                      de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                      ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                      stabilită, se va genera o eroare de nivelul <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>resourcefalse</info>  A result pointer <info>resource</info> on success sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>mysql_thread_id()</strong>
   * <strong>mysql_stat()</strong>


id: mysql_list_tables
type: function
doc:
<comment>Description:</comment>
  List tables in a MySQL database
  
  Retrieves a list of table names from a MySQL database.
  
  This function is deprecated. It is preferable to use  <strong>mysql_query()</strong> to issue an SQL <return>SHOW TABLES
  [FROM db_name] [LIKE 'pattern']</return> statement instead.

<comment>Param:</comment>
  <info>string</info>  <strong>$database       </strong>  The name of the database
  <info>      </info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                            legăturii nu este specificat, se presupune că este ultima legătură
                            deschisă cu
                            ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                            de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                            ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                            stabilită, se va genera o eroare de nivelul <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>resourcefalse</info>  A result pointer <info>resource</info> on success sau <info>false</info> în cazul eșecului.
                 
                 Use the <strong>mysql_tablename()</strong> function to traverse this result pointer, or any function
                 for result tables, such as <strong>mysql_fetch_array()</strong>.

<comment>See Also:</comment>
   * <strong>mysql_list_dbs()</strong>
   * <strong>mysql_tablename()</strong>


id: mysql_num_fields
type: function
doc:
<comment>Description:</comment>
  Get number of fields in result
  
  Retrieves the number of fields from a query.

<comment>Param:</comment>
  <info>resource</info>  <strong>$result</strong>  Rezultatul de tip <info>resource</info>, care este
                     evaluat. Acest rezultat provine de la apelul funcției <strong>mysql_query
                     ()</strong>.

<comment>Return:</comment>
  <info>intfalse</info>  Returns the number of fields in the result set <info>resource</info> on success sau <info>false</info> în cazul
            eșecului.

<comment>See Also:</comment>
   * <strong>mysql_select_db()</strong>
   * <strong>mysql_query()</strong>
   * <strong>mysql_fetch_field()</strong>
   * <strong>mysql_num_rows()</strong>


id: mysql_num_rows
type: function
doc:
<comment>Description:</comment>
  Get number of rows in result
  
  Retrieves the number of rows from a result set. This command is only valid  for statements like
  SELECT or SHOW that return an actual result set.  To retrieve the number of rows affected by a
  INSERT, UPDATE, REPLACE or  DELETE query, use <strong>mysql_affected_rows()</strong>.

<comment>Param:</comment>
  <info>resource</info>  <strong>$result</strong>  Rezultatul de tip <info>resource</info>, care este
                     evaluat. Acest rezultat provine de la apelul funcției <strong>mysql_query
                     ()</strong>.

<comment>Return:</comment>
  <info>intfalse</info>  The number of rows in a result set on success sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>mysql_affected_rows()</strong>
   * <strong>mysql_connect()</strong>
   * <strong>mysql_data_seek()</strong>
   * <strong>mysql_select_db()</strong>
   * <strong>mysql_query()</strong>


id: mysql_pconnect
type: function
doc:
<comment>Description:</comment>
  Open a persistent connection to a MySQL server
  
  Establishes a persistent connection to a MySQL server.
  
  <strong>mysql_pconnect()</strong> acts very much like <strong>mysql_connect()</strong> with two major differences.
  
  First, when connecting, the function would first try to find a (persistent) link that's already
  open with the same host, username and password.  If one is found, an identifier for it will be
  returned instead of opening a new connection.
  
  Second, the connection to the SQL server will not be closed when the execution of the script ends.
  Instead, the link will remain open for future use (<strong>mysql_close()</strong> will not close links established
  by <strong>mysql_pconnect()</strong>).
  
  This type of link is therefore called 'persistent'.

<comment>Param:</comment>
  <info>string</info>  <strong>$server      </strong>  The MySQL server. It can also include a port number. e.g.  "hostname:port"
                         or a path to a local socket e.g. ":/path/to/socket" for  the localhost.
                         
                         If the PHP directive  mysql.default_host is undefined (default), then the
                         default  value is 'localhost:3306'
  <info>string</info>  <strong>$username    </strong>  The username. Default value is the name of the user that owns the server
                         process.
  <info>string</info>  <strong>$password    </strong>  The password. Default value is an empty password.
  <info>int   </info>  <strong>$client_flags</strong>  The <strong>$client_flags</strong> parameter can be a combination  of the following
                         constants: 128 (enable <return>LOAD DATA LOCAL</return> handling), <info>MYSQL_CLIENT_SSL</info>,
                         <info>MYSQL_CLIENT_COMPRESS</info>,  <info>MYSQL_CLIENT_IGNORE_SPACE</info> or
                         <info>MYSQL_CLIENT_INTERACTIVE</info>.

<comment>Return:</comment>
  <info>resource</info>  Returns a MySQL persistent link identifier on success, or <info>false</info> on  failure.

<comment>See Also:</comment>
   * <strong>mysql_connect()</strong>
   * Persistent
    Database Connections


id: mysql_ping
type: function
doc:
<comment>Description:</comment>
  Ping a server connection or reconnect if there is no connection
  
  Checks whether or not the connection to the server is working. If it has gone down, an automatic
  reconnection is attempted. This function can be used by scripts that remain idle for a long while,
  to check whether or not the server has closed the connection and reconnect if necessary.
  
  Automatic reconnection is disabled by default in versions of MySQL &gt;= 5.0.3.

<comment>Param:</comment>
  <info></info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                      legăturii nu este specificat, se presupune că este ultima legătură deschisă cu
                      ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                      de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                      ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                      stabilită, se va genera o eroare de nivelul <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if the connection to the server MySQL server is working,  otherwise <info>false</info>.

<comment>See Also:</comment>
   * <strong>mysql_thread_id()</strong>
   * <strong>mysql_list_processes()</strong>


id: mysql_query
type: function
doc:
<comment>Description:</comment>
  Send a MySQL query
  
  <strong>mysql_query()</strong> sends a unique query (multiple queries are not supported) to the currently active
  database on the server that's associated with the specified <strong>$link_identifier</strong>.

<comment>Param:</comment>
  <info>string</info>  <strong>$query          </strong>  An SQL query
                            
                            The query string should not end with a semicolon. Data inside the query
                            should be properly escaped.
  <info>      </info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                            legăturii nu este specificat, se presupune că este ultima legătură
                            deschisă cu
                            ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                            de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                            ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                            stabilită, se va genera o eroare de nivelul <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>mixed</info>  For SELECT, SHOW, DESCRIBE, EXPLAIN and other statements returning resultset, <strong>mysql_query()</strong>
         returns a <info>resource</info> on success, or <info>false</info> on error.
         
         For other type of SQL statements, INSERT, UPDATE, DELETE, DROP, etc, <strong>mysql_query()</strong> returns
         <info>true</info> on success or <info>false</info> on error.
         
         The returned result resource should be passed to <strong>mysql_fetch_array()</strong>, and other functions
         for dealing with result tables, to access the returned data.
         
         Use <strong>mysql_num_rows()</strong> to find out how many rows were returned for a SELECT statement or
         <strong>mysql_affected_rows()</strong> to find out how many rows were affected by a DELETE, INSERT, REPLACE,
         or UPDATE statement.
         
         <strong>mysql_query()</strong> will also fail and return <info>false</info> if the user does not have permission to
         access the table(s) referenced by the query.

<comment>See Also:</comment>
   * <strong>mysql_connect()</strong>
   * <strong>mysql_error()</strong>
   * <strong>mysql_real_escape_string()</strong>
   * <strong>mysql_result()</strong>
   * <strong>mysql_fetch_assoc()</strong>
   * <strong>mysql_unbuffered_query()</strong>


id: mysql_real_escape_string
type: function
doc:
<comment>Description:</comment>
  Escapes special characters in a string for use in an SQL statement
  
  Escapes special characters in the <strong>$unescaped_string</strong>,  taking into account the current character
  set of the connection so that it  is safe to place it in a <strong>mysql_query()</strong>. If binary data  is to be
  inserted, this function must be used.
  
  <strong>mysql_real_escape_string()</strong> calls MySQL's library function mysql_real_escape_string, which prepends
  backslashes to the following characters: <return>\x00</return>, <return>\n</return>, <return>\r</return>, <return>\</return>, <return>'</return>, <return>"</return> and <return>\x1a</return>.
  
  This function must always (with few exceptions) be used to make data safe before sending a query
  to MySQL.
  
  The character set must be set either at the server level, or with the API function
  <strong>mysql_set_charset()</strong> for it to affect <strong>mysql_real_escape_string()</strong>. See the concepts section on
  character sets for more information.

<comment>Param:</comment>
  <info>string</info>  <strong>$unescaped_string</strong>  The string that is to be escaped.
  <info>      </info>  <strong>$link_identifier </strong>  Conexiunea MySQL. Dacă identificatorul
                             legăturii nu este specificat, se presupune că este ultima legătură
                             deschisă cu
                             ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                             de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                             ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                             stabilită, se va genera o eroare de nivelul <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>string</info>  Returns the escaped string, or <info>false</info> on error.

<comment>See Also:</comment>
   * <strong>mysql_set_charset()</strong>
   * <strong>mysql_client_encoding()</strong>
   * <strong>addslashes()</strong>
   * <strong>stripslashes()</strong>
   * The magic_quotes_gpc directive
   * The magic_quotes_runtime directive


id: mysql_result
type: function
doc:
<comment>Description:</comment>
  Get result data
  
  Retrieves the contents of one cell from a MySQL result set.
  
  When working on large result sets, you should consider using one of the functions that fetch an
  entire row (specified below).  As these functions return the contents of multiple cells in one
  function call, they're MUCH quicker than <strong>mysql_result()</strong>.  Also, note that specifying a numeric
  offset for the field argument is much quicker than specifying a fieldname or tablename.fieldname
  argument.

<comment>Param:</comment>
  <info>resource</info>  <strong>$result</strong>  Rezultatul de tip <info>resource</info>, care este
                     evaluat. Acest rezultat provine de la apelul funcției <strong>mysql_query
                     ()</strong>.
  <info>int     </info>  <strong>$row   </strong>  The row number from the result that's being retrieved. Row numbers  start at <return>0</return>.
  <info>mixed   </info>  <strong>$field </strong>  The name or offset of the field being retrieved.
                     
                     It can be the field's offset, the field's name, or the field's table  dot field
                     name (tablename.fieldname). If the column name has been aliased ('select foo as
                     bar from...'), use the alias instead of the  column name. If undefined, the
                     first field is retrieved.

<comment>Return:</comment>
  <info>string</info>  The contents of one cell from a MySQL result set on success, or  <info>false</info> on failure.

<comment>See Also:</comment>
   * <strong>mysql_fetch_row()</strong>
   * <strong>mysql_fetch_array()</strong>
   * <strong>mysql_fetch_assoc()</strong>
   * <strong>mysql_fetch_object()</strong>


id: mysql_select_db
type: function
doc:
<comment>Description:</comment>
  Select a MySQL database
  
  Sets the current active database on the server that's associated with the  specified link
  identifier. Every subsequent call to  <strong>mysql_query()</strong> will be made on the active database.

<comment>Param:</comment>
  <info>string</info>  <strong>$database_name  </strong>  The name of the database that is to be selected.
  <info>      </info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                            legăturii nu este specificat, se presupune că este ultima legătură
                            deschisă cu
                            ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                            de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                            ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                            stabilită, se va genera o eroare de nivelul <info>E_WARNING</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>mysql_connect()</strong>
   * <strong>mysql_pconnect()</strong>
   * <strong>mysql_query()</strong>


id: mysql_set_charset
type: function
doc:
<comment>Description:</comment>
  Sets the client character set
  
  Sets the default character set for the current connection.

<comment>Param:</comment>
  <info>string</info>  <strong>$charset        </strong>  A valid character set name.
  <info>      </info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                            legăturii nu este specificat, se presupune că este ultima legătură
                            deschisă cu
                            ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                            de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                            ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                            stabilită, se va genera o eroare de nivelul <info>E_WARNING</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>
   * Setting character sets in MySQL
   * List of character sets that MySQL supports
   * <strong>mysql_client_encoding()</strong>


id: mysql_stat
type: function
doc:
<comment>Description:</comment>
  Get current system status
  
  <strong>mysql_stat()</strong> returns the current server status.

<comment>Param:</comment>
  <info></info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                      legăturii nu este specificat, se presupune că este ultima legătură deschisă cu
                      ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                      de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                      ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                      stabilită, se va genera o eroare de nivelul <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>string</info>  Returns a string with the status for uptime, threads, queries, open tables, flush tables
          and queries per second. For a complete list of other status variables, you have to use the
          <return>SHOW STATUS</return> SQL command. If <strong>$link_identifier</strong> is invalid, <info>null</info> is returned.

<comment>See Also:</comment>
   * <strong>mysql_get_server_info()</strong>
   * <strong>mysql_list_processes()</strong>


id: mysql_tablename
type: function
doc:
<comment>Description:</comment>
  Get table name of field
  
  Retrieves the table name from a <strong>$result</strong>.
  
  This function is deprecated. It is preferable to use  <strong>mysql_query()</strong> to issue an SQL <return>SHOW TABLES
  [FROM db_name] [LIKE 'pattern']</return> statement instead.

<comment>Param:</comment>
  <info>resource</info>  <strong>$result</strong>  A result pointer <info>resource</info> that's returned from   <strong>mysql_list_tables()</strong>.
  <info>int     </info>  <strong>$i     </strong>  The integer index (row/table number)

<comment>Return:</comment>
  <info>stringfalse</info>  The name of the table on success sau <info>false</info> în cazul eșecului.
               
               Use the <strong>mysql_tablename()</strong> function to traverse this result pointer, or any function
               for result tables, such as <strong>mysql_fetch_array()</strong>.

<comment>See Also:</comment>
   * <strong>mysql_list_tables()</strong>
   * <strong>mysql_field_table()</strong>
   * <strong>mysql_db_name()</strong>


id: mysql_thread_id
type: function
doc:
<comment>Description:</comment>
  Return the current thread ID
  
  Retrieves the current thread ID. If the connection is lost, and a reconnect  with <strong>mysql_ping()</strong> is
  executed, the thread ID will  change. This means only retrieve the thread ID when needed.

<comment>Param:</comment>
  <info></info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                      legăturii nu este specificat, se presupune că este ultima legătură deschisă cu
                      ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                      de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                      ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                      stabilită, se va genera o eroare de nivelul <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>intfalse</info>  The thread ID on success sau <info>false</info> în cazul eșecului.

<comment>See Also:</comment>
   * <strong>mysql_ping()</strong>
   * <strong>mysql_list_processes()</strong>


id: mysql_unbuffered_query
type: function
doc:
<comment>Description:</comment>
  Send an SQL query to MySQL without fetching and buffering the result rows
  
  <strong>mysql_unbuffered_query()</strong> sends the SQL query <strong>$query</strong> to MySQL without automatically fetching and
  buffering the result rows as <strong>mysql_query()</strong> does.  This saves a considerable amount of memory with
  SQL queries that produce large result sets, and you can start working on the result set
  immediately after the first row has been retrieved as you don't have to wait until the complete
  SQL query has been performed.  To use <strong>mysql_unbuffered_query()</strong> while multiple database connections
  are open, you must specify the optional parameter <strong>$link_identifier</strong> to identify which connection
  you want to use.

<comment>Param:</comment>
  <info>string</info>  <strong>$query          </strong>  The SQL query to execute.
                            
                            Data inside the query should be properly escaped.
  <info>      </info>  <strong>$link_identifier</strong>  Conexiunea MySQL. Dacă identificatorul
                            legăturii nu este specificat, se presupune că este ultima legătură
                            deschisă cu
                            ajutorul <strong>mysql_connect()</strong>. Dacă nu este găsită nici o astfel
                            de legătură, se va încerca crearea uneia prin apelul <strong>mysql_connect
                            ()</strong> fără argumente. În caz că nici o conexiune nu este găsită sau
                            stabilită, se va genera o eroare de nivelul <info>E_WARNING</info>.

<comment>Return:</comment>
  <info>resource</info>  For SELECT, SHOW, DESCRIBE or EXPLAIN statements, <strong>mysql_unbuffered_query()</strong>  returns a
            <info>resource</info> on success, or <info>false</info> on error.
            
            For other type of SQL statements, UPDATE, DELETE, DROP, etc, <strong>mysql_unbuffered_query()</strong>
            returns <info>true</info> on success or <info>false</info> on error.

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


id: mysql_xdevapi\Client::close
type: function
doc:
<comment>Description:</comment>
  Close client
  
  Close all client connections with the server.

<comment>Return:</comment>
  <info>bool</info>  <info>true</info> if connections are closed.


id: mysql_xdevapi\Table
type: class
doc:
<comment>Description:</comment>
  Provides access to the table through INSERT/SELECT/UPDATE/DELETE statements.


id: mysqli::__construct
type: function
doc:
<comment>Description:</comment>
  Open a new connection to the MySQL server
  
  Stil obiect-orientat
  
  Stil procedural
  
  Opens a connection to the MySQL Server.

<comment>Param:</comment>
  <info>string</info>  <strong>$host    </strong>  Can be either a host name or an IP address. Passing the <info>null</info> value or the
                     string "localhost" to this parameter, the local host is assumed. When possible,
                     pipes will be used instead of the TCP/IP protocol.
                     
                     Prepending host by <return>p:</return> opens a persistent connection. <strong>mysqli_change_user()</strong> is
                     automatically called on connections opened from the connection pool.
  <info>string</info>  <strong>$username</strong>  The MySQL user name.
  <info>string</info>  <strong>$passwd  </strong>  If not provided or <info>null</info>, the MySQL server will attempt to authenticate the user
                     against those user records which have no password only. This allows one
                     username to be used with different permissions (depending on if a password is
                     provided or not).
  <info>string</info>  <strong>$dbname  </strong>  If provided will specify the default database to be used when performing
                     queries.
  <info>int   </info>  <strong>$port    </strong>  Specifies the port number to attempt to connect to the MySQL server.
  <info>string</info>  <strong>$socket  </strong>  Specifies the socket or named pipe that should be used.
                     
                     Specifying the <strong>$socket</strong> parameter will not explicitly determine the type of
                     connection to be used when connecting to the MySQL server. How the connection
                     is made to the MySQL database is determined by the <strong>$host</strong> parameter.

<comment>Return:</comment>
  <info>void</info>  Returns an object which represents the connection to a MySQL Server, sau <info>false</info> în cazul
        eșecului.

<comment>See Also:</comment>
   * <strong>mysqli_real_connect()</strong>
   * <strong>mysqli_options()</strong>
   * <strong>mysqli_connect_errno()</strong>
   * <strong>mysqli_connect_error()</strong>
   * <strong>mysqli_close()</strong>


id: mysqli::autocommit
type: function
doc:
<comment>Description:</comment>
  Turns on or off auto-committing database modifications
  
  Stil obiect-orientat
  
  Stil procedural
  
  Turns on or off auto-commit mode on queries for the database connection.
  
  To determine the current state of autocommit use the SQL command <return>SELECT @@autocommit</return>.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>
  <info>bool  </info>  <strong>$mode</strong>  Whether to turn on auto-commit or not.

<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>mysqli_begin_transaction()</strong>
   * <strong>mysqli_commit()</strong>
   * <strong>mysqli_rollback()</strong>


id: mysqli::begin_transaction
type: function
doc:
<comment>Description:</comment>
  Starts a transaction
  
  Stil obiect-orientat
  
  Stil procedural:
  
  Begins a transaction. Requires the InnoDB  engine (it is enabled by default). For additional
  details about how MySQL transactions work, see http://dev.mysql.com/doc/mysql/en/commit.html.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link </strong>  Numai stilul procedural: Un identificator al legăturii întors
                  de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>
  <info>int   </info>  <strong>$flags</strong>  Valid flags are:
                  
                  <info>MYSQLI_TRANS_START_READ_ONLY</info>:  Start the transaction as "START TRANSACTION READ
                  ONLY". Requires MySQL 5.6 and above.
                  
                  <info>MYSQLI_TRANS_START_READ_WRITE</info>:  Start the transaction as "START TRANSACTION READ
                  WRITE". Requires MySQL 5.6 and above.
                  
                  <info>MYSQLI_TRANS_START_WITH_CONSISTENT_SNAPSHOT</info>:  Start the transaction as "START
                  TRANSACTION WITH CONSISTENT SNAPSHOT".
  <info>string</info>  <strong>$name </strong>  Savepoint name for the transaction.

<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>mysqli_autocommit()</strong>
   * <strong>mysqli_commit()</strong>
   * <strong>mysqli_rollback()</strong>


id: mysqli::change_user
type: function
doc:
<comment>Description:</comment>
  Changes the user of the specified database connection
  
  Stil obiect-orientat
  
  Stil procedural
  
  Changes the user of the specified database connection and sets the current database.
  
  In order to successfully change users a valid <strong>$username</strong> and <strong>$password</strong> parameters must be provided
  and that user must have sufficient permissions to access the desired database. If for any reason
  authorization fails, the current user authentication will remain.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link    </strong>  Numai stilul procedural: Un identificator al legăturii întors
                     de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>
  <info>string</info>  <strong>$user    </strong>  The MySQL user name.
  <info>string</info>  <strong>$password</strong>  The MySQL password.
  <info>string</info>  <strong>$database</strong>  The database to change to.
                     
                     If desired, the <info>null</info> value may be passed resulting in only changing the user
                     and not selecting a database. To select a database in this case use the
                     <strong>mysqli_select_db()</strong> function.

<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>mysqli_connect()</strong>
   * <strong>mysqli_select_db()</strong>


id: mysqli::character_set_name
type: function
doc:
<comment>Description:</comment>
  Returns the default character set for the database connection
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns the current character set for the database connection.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>string</info>  The default character set for the current connection

<comment>See Also:</comment>
   * <strong>mysqli_set_charset()</strong>
   * <strong>mysqli_client_encoding()</strong>
   * <strong>mysqli_real_escape_string()</strong>


id: mysqli::close
type: function
doc:
<comment>Description:</comment>
  Closes a previously opened database connection
  
  Stil obiect-orientat
  
  Stil procedural
  
  Closes a previously opened database connection.
  
  Conexiunile MySQL non-persistente deschise și seturile de rezultate sunt automat
  distruse atunci când un script PHP își încheie execuția. Deci închiderea în mod
  explicit a conexiunilor deschise și eliberarea seturilor de rezultate sunt
  opționale, însă sunt recomandata. Aceasta va întoarce imediat resursele către PHP
  și MySQL, ceea ce poate îmbunătăți performața. Pentru informații suplimentare accesați
  eliberarea resurselor

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</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>
   * mysqli::__construct
   * <strong>mysqli_init()</strong>
   * <strong>mysqli_real_connect()</strong>
   * <strong>mysqli_free_result()</strong>


id: mysqli::commit
type: function
doc:
<comment>Description:</comment>
  Commits the current transaction
  
  Stil obiect-orientat
  
  Stil procedural
  
  Commits the current transaction for the database connection.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link </strong>  Numai stilul procedural: Un identificator al legăturii întors
                  de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>
  <info>int   </info>  <strong>$flags</strong>  A bitmask of <info>MYSQLI_TRANS_COR_*</info> constants.
  <info>string</info>  <strong>$name </strong>  If provided then <return>COMMIT/*name*/</return> is executed.

<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>mysqli_autocommit()</strong>
   * <strong>mysqli_begin_transaction()</strong>
   * <strong>mysqli_rollback()</strong>
   * <strong>mysqli_savepoint()</strong>


id: mysqli::debug
type: function
doc:
<comment>Description:</comment>
  Performs debugging operations
  
  Stil obiect-orientat
  
  Stil procedural
  
  Performs debugging operations using the Fred Fish debugging library.

<comment>Param:</comment>
  <info>string</info>  <strong>$message</strong>  A string representing the debugging operation to perform

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info>.

<comment>See Also:</comment>
   * <strong>mysqli_dump_debug_info()</strong>
   * <strong>mysqli_report()</strong>


id: mysqli::dump_debug_info
type: function
doc:
<comment>Description:</comment>
  Dump debugging information into the log
  
  Stil obiect-orientat
  
  Stil procedural
  
  This function is designed to be executed by an user with the SUPER privilege and is used to dump
  debugging information into the log for the MySQL Server relating to the connection.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</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>mysqli_debug()</strong>


id: mysqli::escape_string
type: function
doc:
<comment>Description:</comment>
  Escapes special characters in a string for use in an SQL statement, taking into account the
  current
  charset of the connection
  
  Stil obiect-orientat
  
  Stil procedural
  
  This function is used to create a legal SQL string that you can use in an SQL statement. The given
  string is encoded to an escaped SQL string, taking into account the current character set of the
  connection.
  
  The character set must be set either at the server level, or with the API function
  <strong>mysqli_set_charset()</strong> for it to affect <strong>mysqli_real_escape_string()</strong>. See the concepts section on
  character sets for more information.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link     </strong>  Numai stilul procedural: Un identificator al legăturii întors
                      de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>
  <info>string</info>  <strong>$escapestr</strong>  The string to be escaped.
                      
                      Characters encoded are <return>NUL (ASCII 0), \n, \r, \, ', ", and Control-Z</return>.

<comment>Return:</comment>
  <info>string</info>  Returns an escaped string.

<comment>See Also:</comment>
   * <strong>mysqli_set_charset()</strong>
   * <strong>mysqli_character_set_name()</strong>


id: mysqli::get_charset
type: function
doc:
<comment>Description:</comment>
  Returns a character set object
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns a character set object providing several properties  of the current active character set.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>object</info>  The function returns a character set object with the following properties:
          <strong>$charset</strong>Character set name<strong>$collation</strong>Collation name<strong>$dir</strong>Directory the charset description
          was fetched from (?) or "" for built-in character sets<strong>$min_length</strong>Minimum character length
          in bytes<strong>$max_length</strong>Maximum character length in bytes<strong>$number</strong>Internal character set
          number<strong>$state</strong>Character set status (?)
          
          Character set name
          
          Collation name
          
          Directory the charset description was fetched from (?) or "" for built-in character sets
          
          Minimum character length in bytes
          
          Maximum character length in bytes
          
          Internal character set number
          
          Character set status (?)

<comment>See Also:</comment>
   * <strong>mysqli_character_set_name()</strong>
   * <strong>mysqli_set_charset()</strong>


id: mysqli::get_client_info
type: function
doc:
<comment>Description:</comment>
  Get MySQL client info
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns a string that represents the MySQL client library version.

<comment>Return:</comment>
  <info>string</info>  A string that represents the MySQL client library version

<comment>See Also:</comment>
   * <strong>mysqli_get_client_version()</strong>
   * <strong>mysqli_get_server_info()</strong>
   * <strong>mysqli_get_server_version()</strong>


id: mysqli::get_connection_stats
type: function
doc:
<comment>Description:</comment>
  Returns statistics about the client connection
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns statistics about the client connection. Disponibil numai cu mysqlnd.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>bool</info>  Returns an array with connection stats if success, <info>false</info> otherwise.

<comment>See Also:</comment>
   * Stats description


id: mysqli::get_server_info
type: function
doc:
<comment>Description:</comment>
  Returns the version of the MySQL server
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns a string representing the version of the MySQL server that the MySQLi extension is
  connected to.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>string</info>  A character string representing the server version.

<comment>See Also:</comment>
   * <strong>mysqli_get_client_info()</strong>
   * <strong>mysqli_get_client_version()</strong>
   * <strong>mysqli_get_server_version()</strong>


id: mysqli::get_warnings
type: function
doc:
<comment>Description:</comment>
  Get result of SHOW WARNINGS
  
  Stil obiect-orientat
  
  Stil procedural
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Return:</comment>
  <info>mysqli_warning</info>  


id: mysqli::init
type: function
doc:
<comment>Description:</comment>
  Initializes MySQLi and returns an object for use with mysqli_real_connect()
  
  Stil obiect-orientat
  
  Stil procedural
  
  Allocates or initializes a MYSQL object suitable for <strong>mysqli_options()</strong> and <strong>mysqli_real_connect()</strong>.
  
  Any subsequent calls to any mysqli function (except <strong>mysqli_options()</strong>) will fail until
  <strong>mysqli_real_connect()</strong> was called.

<comment>Return:</comment>
  <info>mysqli</info>  Returns an object.

<comment>See Also:</comment>
   * <strong>mysqli_options()</strong>
   * <strong>mysqli_close()</strong>
   * <strong>mysqli_real_connect()</strong>
   * <strong>mysqli_connect()</strong>


id: mysqli::kill
type: function
doc:
<comment>Description:</comment>
  Asks the server to kill a MySQL thread
  
  Stil obiect-orientat
  
  Stil procedural
  
  This function is used to ask the server to kill a MySQL thread specified by the <strong>$processid</strong>
  parameter. This value must be retrieved by calling the <strong>mysqli_thread_id()</strong> function.
  
  To stop a running query you should use the SQL command <return>KILL QUERY processid</return>.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</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>mysqli_thread_id()</strong>


id: mysqli::more_results
type: function
doc:
<comment>Description:</comment>
  Check if there are any more query results from a multi query
  
  Stil obiect-orientat
  
  Stil procedural
  
  Indicates if one or more result sets are available from a previous call to <strong>mysqli_multi_query()</strong>.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if one or more result sets (including errors) are available from a previous
        call to <strong>mysqli_multi_query()</strong>, otherwise <info>false</info>.

<comment>See Also:</comment>
   * <strong>mysqli_multi_query()</strong>
   * <strong>mysqli_next_result()</strong>
   * <strong>mysqli_store_result()</strong>
   * <strong>mysqli_use_result()</strong>


id: mysqli::multi_query
type: function
doc:
<comment>Description:</comment>
  Performs a query on the database
  
  Stil obiect-orientat
  
  Stil procedural
  
  Executes one or multiple queries which are concatenated by a semicolon.
  
  To retrieve the resultset from the first query you can use <strong>mysqli_use_result()</strong> or
  <strong>mysqli_store_result()</strong>. All subsequent query results can be processed using <strong>mysqli_more_results()</strong>
  and <strong>mysqli_next_result()</strong>.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link </strong>  Numai stilul procedural: Un identificator al legăturii întors
                  de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>
  <info>string</info>  <strong>$query</strong>  The query, as a string.
                  
                  Data inside the query should be properly escaped.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>false</info> if the first statement failed. To retrieve subsequent errors from other
        statements you have to call <strong>mysqli_next_result()</strong> first.

<comment>See Also:</comment>
   * <strong>mysqli_query()</strong>
   * <strong>mysqli_use_result()</strong>
   * <strong>mysqli_store_result()</strong>
   * <strong>mysqli_next_result()</strong>
   * <strong>mysqli_more_results()</strong>


id: mysqli::next_result
type: function
doc:
<comment>Description:</comment>
  Prepare next result from multi_query
  
  Stil obiect-orientat
  
  Stil procedural
  
  Prepares next result set from a previous call to  <strong>mysqli_multi_query()</strong> which can be retrieved by
  <strong>mysqli_store_result()</strong> or <strong>mysqli_use_result()</strong>.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>bool</info>  Întoarce valoarea <info>true</info> în cazul
        succesului sau <info>false</info> în cazul eșecului. Also returns <info>false</info> if the next statement resulted in
        an error, unlike mysqli_more_results.

<comment>See Also:</comment>
   * <strong>mysqli_multi_query()</strong>
   * <strong>mysqli_more_results()</strong>
   * <strong>mysqli_store_result()</strong>
   * <strong>mysqli_use_result()</strong>


id: mysqli::options
type: function
doc:
<comment>Description:</comment>
  Set options
  
  Stil obiect-orientat
  
  Stil procedural
  
  Used to set extra connect options and affect behavior for a connection.
  
  This function may be called multiple times to set several options.
  
  <strong>mysqli_options()</strong> should be called after <strong>mysqli_init()</strong> and before <strong>mysqli_real_connect()</strong>.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link  </strong>  Numai stilul procedural: Un identificator al legăturii întors
                   de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>
  <info>int   </info>  <strong>$option</strong>  The option that you want to set. It can be one of the following values: Valid
                   optionsNameDescription<info>MYSQLI_OPT_CONNECT_TIMEOUT</info>Connection timeout in
                   seconds<info>MYSQLI_OPT_READ_TIMEOUT</info>Command execution result timeout in seconds.
                   Available as of PHP 7.2.0.<info>MYSQLI_OPT_LOCAL_INFILE</info>Enable/disable use of <return>LOAD LOCAL
                   INFILE</return><info>MYSQLI_INIT_COMMAND</info>Command to execute after when connecting to MySQL
                   server<info>MYSQLI_SET_CHARSET_NAME</info>The charset to be set as
                   default.<info>MYSQLI_READ_DEFAULT_FILE</info> Read options from named option file instead of
                   my.cnf Not supported by mysqlnd. <info>MYSQLI_READ_DEFAULT_GROUP</info> Read options from the
                   named group from my.cnf or the file specified with <info>MYSQL_READ_DEFAULT_FILE</info>. Not
                   supported by mysqlnd. <info>MYSQLI_SERVER_PUBLIC_KEY</info> RSA public key file used with the
                   SHA-256 based authentication. <info>MYSQLI_OPT_NET_CMD_BUFFER_SIZE</info> The size of the
                   internal command/network buffer. Only valid for mysqlnd.
                   <info>MYSQLI_OPT_NET_READ_BUFFER_SIZE</info> Maximum read chunk size in bytes when reading the
                   body of a MySQL command packet. Only valid for mysqlnd.
                   <info>MYSQLI_OPT_INT_AND_FLOAT_NATIVE</info> Convert integer and float columns back to PHP
                   numbers. Only valid for mysqlnd. <info>MYSQLI_OPT_SSL_VERIFY_SERVER_CERT</info> Whether to
                   verify server certificate or not.
  <info>mixed </info>  <strong>$value </strong>  The value for the option.

<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>mysqli_init()</strong>
   * <strong>mysqli_real_connect()</strong>


id: mysqli::ping
type: function
doc:
<comment>Description:</comment>
  Pings a server connection, or tries to reconnect if the connection has gone down
  
  Stil obiect-orientat
  
  Stil procedural
  
  Checks whether the connection to the server is working. If it has gone down and global option
  mysqli.reconnect is enabled, an automatic reconnection is attempted.
  
  The php.ini setting mysqli.reconnect is ignored by the mysqlnd driver, so automatic reconnection
  is never attempted.
  
  This function can be used by clients that remain idle for a long while, to check whether the
  server has closed the connection and reconnect if necessary.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

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


id: mysqli::poll
type: function
doc:
<comment>Description:</comment>
  Poll connections
  
  Stil obiect-orientat
  
  Stil procedural
  
  Poll connections. Disponibil numai cu mysqlnd. The method can be used as static.

<comment>Param:</comment>
  <info>array</info>  <strong>$read  </strong>  List of connections to check for outstanding results that can be read.
  <info>array</info>  <strong>$error </strong>  List of connections on which an error occurred, for example, query failure or lost
                  connection.
  <info>array</info>  <strong>$reject</strong>  List of connections rejected because no asynchronous query has been run on for
                  which the function could poll results.
  <info>int  </info>  <strong>$sec   </strong>  Maximum number of seconds to wait, must be non-negative.
  <info>int  </info>  <strong>$usec  </strong>  Maximum number of microseconds to wait, must be non-negative.

<comment>Return:</comment>
  <info>int</info>  Returns number of ready connections upon success, <info>false</info> otherwise.

<comment>See Also:</comment>
   * <strong>mysqli_query()</strong>
   * <strong>mysqli_reap_async_query()</strong>


id: mysqli::prepare
type: function
doc:
<comment>Description:</comment>
  Prepare an SQL statement for execution
  
  Stil obiect-orientat
  
  Stil procedural
  
  Prepares the SQL query, and returns a statement handle to be used for further operations on the
  statement. The query must consist of a single SQL statement.
  
  The parameter markers must be bound to application variables using <strong>mysqli_stmt_bind_param()</strong> and/or
  <strong>mysqli_stmt_bind_result()</strong> before executing the statement or fetching rows.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link </strong>  Numai stilul procedural: Un identificator al legăturii întors
                  de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>
  <info>string</info>  <strong>$query</strong>  The query, as a string.
                  
                  You should not add a terminating semicolon or <return>\g</return> to the statement.
                  
                  This parameter can include one or more parameter markers in the SQL statement by
                  embedding question mark (<return>?</return>) characters at the appropriate positions.
                  
                  The markers are legal only in certain places in SQL statements. For example, they
                  are allowed in the <return>VALUES()</return> list of an <return>INSERT</return> statement (to specify column values
                  for a row), or in a comparison with a column in a <return>WHERE</return> clause to specify a
                  comparison value.
                  
                  However, they are not allowed for identifiers (such as table or column names), in
                  the select list that names the columns to be returned by a <return>SELECT</return> statement, or to
                  specify both operands of a binary operator such as the <return>=</return> equal sign. The latter
                  restriction is necessary because it would be impossible to determine the parameter
                  type. It's not allowed to compare marker with <return>NULL</return> by  <return>? IS NULL</return> too. In general,
                  parameters are legal only in Data Manipulation Language (DML) statements, and not
                  in Data Definition Language (DDL) statements.

<comment>Return:</comment>
  <info>mysqli_stmt</info>  <strong>mysqli_prepare()</strong> returns a statement object or <info>false</info> if an error occurred.

<comment>See Also:</comment>
   * <strong>mysqli_stmt_execute()</strong>
   * <strong>mysqli_stmt_fetch()</strong>
   * <strong>mysqli_stmt_bind_param()</strong>
   * <strong>mysqli_stmt_bind_result()</strong>
   * <strong>mysqli_stmt_close()</strong>


id: mysqli::query
type: function
doc:
<comment>Description:</comment>
  Performs a query on the database
  
  Stil obiect-orientat
  
  Stil procedural
  
  Performs a <strong>$query</strong> against the database.
  
  For non-DML queries (not INSERT, UPDATE or DELETE), this function is similar to calling
  <strong>mysqli_real_query()</strong> followed by either <strong>mysqli_use_result()</strong> or  <strong>mysqli_store_result()</strong>.
  
  In the case where you pass a statement to <strong>mysqli_query()</strong> that is longer than <return>max_allowed_packet</return> of
  the server, the returned error codes are different depending on whether you are using MySQL Native
  Driver (<return>mysqlnd</return>) or MySQL Client Library (<return>libmysqlclient</return>). The behavior is as follows:
  
  <return>mysqlnd</return> on Linux returns an error code of 1153. The error message means got a packet bigger than
  <return>max_allowed_packet</return> bytes.
  
  <return>mysqlnd</return> on Windows returns an error code 2006. This error message means server has gone away.
  
  <return>libmysqlclient</return> on all platforms returns an error code 2006. This error message means server has
  gone away.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link      </strong>  Numai stilul procedural: Un identificator al legăturii întors
                       de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>
  <info>string</info>  <strong>$query     </strong>  The query string.
                       
                       Data inside the query should be properly escaped.
  <info>int   </info>  <strong>$resultmode</strong>  Either the constant <info>MYSQLI_USE_RESULT</info> or <info>MYSQLI_STORE_RESULT</info> depending on the
                       desired behavior. By default, <info>MYSQLI_STORE_RESULT</info> is used.
                       
                       If you use <info>MYSQLI_USE_RESULT</info> all subsequent calls will return error <return>Commands
                       out of sync</return> unless you call <strong>mysqli_free_result()</strong>
                       
                       With <info>MYSQLI_ASYNC</info> (available with mysqlnd), it is possible to perform query
                       asynchronously. <strong>mysqli_poll()</strong> is then used to get results from such queries.

<comment>Return:</comment>
  <info>mixed</info>  Returns <info>false</info> on failure. For successful <return>SELECT, SHOW, DESCRIBE</return> or <return>EXPLAIN</return> queries
         <strong>mysqli_query()</strong> will return a <class>mysqli_result</class> object. For other successful queries
         <strong>mysqli_query()</strong> will return <info>true</info>.

<comment>See Also:</comment>
   * <strong>mysqli_real_query()</strong>
   * <strong>mysqli_multi_query()</strong>
   * <strong>mysqli_free_result()</strong>


id: mysqli::real_connect
type: function
doc:
<comment>Description:</comment>
  Opens a connection to a mysql server
  
  Stil obiect-orientat
  
  Stil procedural
  
  Establish a connection to a MySQL database engine.
  
  This function differs from <strong>mysqli_connect()</strong>:
  
  <strong>mysqli_real_connect()</strong> needs a valid object which has to be created by function <strong>mysqli_init()</strong>.
  
  With the <strong>mysqli_options()</strong> function you can set various options for connection.
  
  There is a <strong>$flags</strong> parameter.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link    </strong>  Numai stilul procedural: Un identificator al legăturii întors
                     de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>
  <info>string</info>  <strong>$host    </strong>  Can be either a host name or an IP address. Passing the <info>null</info> value or the
                     string "localhost" to this parameter, the local host is assumed. When possible,
                     pipes will be used instead of the TCP/IP protocol.
  <info>string</info>  <strong>$username</strong>  The MySQL user name.
  <info>string</info>  <strong>$passwd  </strong>  If provided or <info>null</info>, the MySQL server will attempt to authenticate the user
                     against those user records which have no password only. This allows one
                     username to be used with different permissions (depending on if a password as
                     provided or not).
  <info>string</info>  <strong>$dbname  </strong>  If provided will specify the default database to be used when performing
                     queries.
  <info>int   </info>  <strong>$port    </strong>  Specifies the port number to attempt to connect to the MySQL server.
  <info>string</info>  <strong>$socket  </strong>  Specifies the socket or named pipe that should be used.
                     
                     Specifying the <strong>$socket</strong> parameter will not explicitly determine the type of
                     connection to be used when connecting to the MySQL server. How the connection
                     is made to the MySQL database is determined by the <strong>$host</strong> parameter.
  <info>int   </info>  <strong>$flags   </strong>  With the parameter <strong>$flags</strong> you can set different connection options:
                     
                     For security reasons the <info>MULTI_STATEMENT</info> flag is not supported in PHP. If you
                     want to execute multiple queries use the <strong>mysqli_multi_query()</strong> function.

<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>mysqli_connect()</strong>
   * <strong>mysqli_init()</strong>
   * <strong>mysqli_options()</strong>
   * <strong>mysqli_ssl_set()</strong>
   * <strong>mysqli_close()</strong>


id: mysqli::real_query
type: function
doc:
<comment>Description:</comment>
  Execute an SQL query
  
  Stil obiect-orientat
  
  Stil procedural
  
  Executes a single query against the database whose result can then be retrieved or stored using
  the <strong>mysqli_store_result()</strong> or <strong>mysqli_use_result()</strong> functions.
  
  In order to determine if a given query should return a result set or not, see
  <strong>mysqli_field_count()</strong>.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link </strong>  Numai stilul procedural: Un identificator al legăturii întors
                  de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>
  <info>string</info>  <strong>$query</strong>  The query, as a string.
                  
                  Data inside the query should be properly escaped.

<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>mysqli_query()</strong>
   * <strong>mysqli_store_result()</strong>
   * <strong>mysqli_use_result()</strong>


id: mysqli::reap_async_query
type: function
doc:
<comment>Description:</comment>
  Get result from async query
  
  Stil obiect-orientat
  
  Stil procedural
  
  Get result from async query. Disponibil numai cu mysqlnd.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>mysqli_result</info>  Returns <class>mysqli_result</class> in success, <info>false</info> otherwise.

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


id: mysqli::refresh
type: function
doc:
<comment>Description:</comment>
  Refreshes
  
  Stil obiect-orientat
  
  Stil procedural
  
  Flushes tables or caches, or resets the replication server information.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link   </strong>  Numai stilul procedural: Un identificator al legăturii întors
                    de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>
  <info>int   </info>  <strong>$options</strong>  The options to refresh, using the MYSQLI_REFRESH_* constants as documented
                    within the MySQLi constants documentation.
                    
                    See also the official MySQL Refresh documentation.

<comment>Return:</comment>
  <info>bool</info>  <info>true</info> if the refresh was a success, otherwise <info>false</info>

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


id: mysqli::release_savepoint
type: function
doc:
<comment>Description:</comment>
  Removes the named savepoint from the set of savepoints of the current transaction
  
  Stil obiect-orientat
  
  Stil procedural:
  
  This function is identical to executing $mysqli-&gt;query("RELEASE SAVEPOINT `$name`");. This
  function does not trigger commit or rollback.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>
  <info>string</info>  <strong>$name</strong>  The identifier of the savepoint.

<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>mysqli_savepoint()</strong>


id: mysqli::rollback
type: function
doc:
<comment>Description:</comment>
  Rolls back current transaction
  
  Stil obiect-orientat
  
  Stil procedural
  
  Rollbacks the current transaction for the database.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link </strong>  Numai stilul procedural: Un identificator al legăturii întors
                  de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>
  <info>int   </info>  <strong>$flags</strong>  A bitmask of <info>MYSQLI_TRANS_COR_*</info> constants.
  <info>string</info>  <strong>$name </strong>  If provided then <return>ROLLBACK/*name*/</return> is executed.

<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>mysqli_begin_transaction()</strong>
   * <strong>mysqli_commit()</strong>
   * <strong>mysqli_autocommit()</strong>
   * <strong>mysqli_release_savepoint()</strong>


id: mysqli::savepoint
type: function
doc:
<comment>Description:</comment>
  Set a named transaction savepoint
  
  Stil obiect-orientat
  
  Stil procedural:
  
  This function is identical to executing $mysqli-&gt;query("SAVEPOINT `$name`");

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>
  <info>string</info>  <strong>$name</strong>  The identifier of the savepoint.

<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>mysqli_release_savepoint()</strong>


id: mysqli::select_db
type: function
doc:
<comment>Description:</comment>
  Selects the default database for database queries
  
  Stil obiect-orientat
  
  Stil procedural
  
  Selects the default database to be used when performing queries against the database connection.
  
  This function should only be used to change the default database for the connection. You can
  select the default database with 4th parameter in  <strong>mysqli_connect()</strong>.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link  </strong>  Numai stilul procedural: Un identificator al legăturii întors
                   de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>
  <info>string</info>  <strong>$dbname</strong>  The database 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>mysqli_connect()</strong>
   * <strong>mysqli_real_connect()</strong>


id: mysqli::set_charset
type: function
doc:
<comment>Description:</comment>
  Sets the default client character set
  
  Stil obiect-orientat
  
  Stil procedural
  
  Sets the default character set to be used when sending data from and to the database server.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link   </strong>  Numai stilul procedural: Un identificator al legăturii întors
                    de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>
  <info>string</info>  <strong>$charset</strong>  The charset to be set as default.

<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>mysqli_character_set_name()</strong>
   * <strong>mysqli_real_escape_string()</strong>
   * MySQL character set concepts
   * List of character sets that MySQL supports


id: mysqli::set_opt
type: function
doc:
<comment>Description:</comment>
  Pseudonim al mysqli_options
  
  Această funcție este pseudonim pentru:  <strong>mysqli_options()</strong>.


id: mysqli::ssl_set
type: function
doc:
<comment>Description:</comment>
  Used for establishing secure connections using SSL
  
  Stil obiect-orientat
  
  Stil procedural
  
  Used for establishing secure connections using SSL. It must be called before
  <strong>mysqli_real_connect()</strong>. This function does nothing unless OpenSSL support is enabled.
  
  Note that MySQL Native Driver does not support SSL before PHP 5.3.3,  so calling this function
  when using MySQL Native Driver will result  in an error. MySQL Native Driver is enabled by default
  on Microsoft  Windows from PHP version 5.3 onwards.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link  </strong>  Numai stilul procedural: Un identificator al legăturii întors
                   de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>
  <info>string</info>  <strong>$key   </strong>  The path name to the key file.
  <info>string</info>  <strong>$cert  </strong>  The path name to the certificate file.
  <info>string</info>  <strong>$ca    </strong>  The path name to the certificate authority file.
  <info>string</info>  <strong>$capath</strong>  The pathname to a directory that contains trusted SSL CA certificates in PEM
                   format.
  <info>string</info>  <strong>$cipher</strong>  A list of allowable ciphers to use for SSL encryption.

<comment>Return:</comment>
  <info>bool</info>  This function always returns <info>true</info> value. If SSL setup is incorrect <strong>mysqli_real_connect()</strong>
        will return an error when you attempt to connect.

<comment>See Also:</comment>
   * <strong>mysqli_options()</strong>
   * <strong>mysqli_real_connect()</strong>


id: mysqli::stat
type: function
doc:
<comment>Description:</comment>
  Gets the current system status
  
  Stil obiect-orientat
  
  Stil procedural
  
  <strong>mysqli_stat()</strong> returns a string containing information similar to that provided by the 'mysqladmin
  status' command. This includes uptime in seconds and the number of running threads, questions,
  reloads, and open tables.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>string</info>  A string describing the server status. <info>false</info> if an error occurred.

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


id: mysqli::stmt_init
type: function
doc:
<comment>Description:</comment>
  Initializes a statement and returns an object for use with mysqli_stmt_prepare
  
  Stil obiect-orientat
  
  Stil procedural
  
  Allocates and initializes a statement object suitable for <strong>mysqli_stmt_prepare()</strong>.
  
  Any subsequent calls to any mysqli_stmt function will fail until <strong>mysqli_stmt_prepare()</strong> was called.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>mysqli_stmt</info>  Returns an object.

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


id: mysqli::store_result
type: function
doc:
<comment>Description:</comment>
  Transfers a result set from the last query
  
  Stil obiect-orientat
  
  Stil procedural
  
  Transfers the result set from the last query on the database connection represented by the <strong>$link</strong>
  parameter to be used with the <strong>mysqli_data_seek()</strong> function.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link  </strong>  Numai stilul procedural: Un identificator al legăturii întors
                   de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>
  <info>int   </info>  <strong>$option</strong>  The option that you want to set. It can be one of the following values: Valid
                   optionsNameDescription<info>MYSQLI_STORE_RESULT_COPY_DATA</info>Copy results from the internal
                   mysqlnd buffer into the PHP variables fetched. By default, mysqlnd will use a
                   reference logic to avoid copying and duplicating results held in memory. For
                   certain result sets, for example, result sets with many small rows, the copy
                   approach can reduce the overall memory usage because PHP variables holding
                   results may be released earlier (available with mysqlnd only, since PHP 5.6.0)

<comment>Return:</comment>
  <info>mysqli_result</info>  Returns a buffered result object or <info>false</info> if an error occurred.
                 
                 <strong>mysqli_store_result()</strong> returns <info>false</info> in case the query didn't return a result set
                 (if the query was, for example an INSERT statement). This function also returns
                 <info>false</info> if the reading of the result set failed. You can check if you have got an
                 error by checking if <strong>mysqli_error()</strong> doesn't return an empty string, if
                 <strong>mysqli_errno()</strong> returns a non zero value, or if <strong>mysqli_field_count()</strong> returns a non
                 zero value. Also possible reason for this function returning <info>false</info> after successful
                 call to <strong>mysqli_query()</strong> can be too large result set (memory for it cannot be
                 allocated). If <strong>mysqli_field_count()</strong> returns a non-zero value, the statement should
                 have produced a non-empty result set.

<comment>See Also:</comment>
   * <strong>mysqli_real_query()</strong>
   * <strong>mysqli_use_result()</strong>


id: mysqli::thread_safe
type: function
doc:
<comment>Description:</comment>
  Returns whether thread safety is given or not
  
  Stil obiect-orientat
  
  Stil procedural
  
  Tells whether the client library is compiled as thread-safe.

<comment>Return:</comment>
  <info>void</info>  <info>true</info> if the client library is thread-safe, otherwise <info>false</info>.


id: mysqli::use_result
type: function
doc:
<comment>Description:</comment>
  Initiate a result set retrieval
  
  Stil obiect-orientat
  
  Stil procedural
  
  Used to initiate the retrieval of a result set from the last query executed using the
  <strong>mysqli_real_query()</strong> function on the database connection.
  
  Either this or the <strong>mysqli_store_result()</strong> function must be called before the results of a query can
  be retrieved, and one or the other must be called to prevent the next query on that database
  connection from failing.
  
  The <strong>mysqli_use_result()</strong> function does not transfer the entire result set from the database and
  hence cannot be used functions such as <strong>mysqli_data_seek()</strong> to move to a particular row within the
  set. To use this functionality, the result set must be stored using <strong>mysqli_store_result()</strong>. One
  should not use <strong>mysqli_use_result()</strong> if a lot of processing on the client side is performed, since
  this will tie up the server and prevent other threads from updating any tables from which the data
  is being fetched.

<comment>Return:</comment>
  <info>mysqli_result</info>  Returns an unbuffered result object or <info>false</info> if an error occurred.

<comment>See Also:</comment>
   * <strong>mysqli_real_query()</strong>
   * <strong>mysqli_store_result()</strong>


id: mysqli_affected_rows
type: function
doc:
<comment>Description:</comment>
  Gets the number of affected rows in a previous MySQL operation
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns the number of rows affected by the last <return>INSERT</return>, <return>UPDATE</return>, <return>REPLACE</return> or  <return>DELETE</return> query.
  
  For SELECT statements <strong>mysqli_affected_rows()</strong> works like <strong>mysqli_num_rows()</strong>.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>int</info>  An integer greater than zero indicates the number of rows affected or retrieved. Zero
       indicates that no records were updated for an UPDATE statement, no rows matched the <return>WHERE</return>
       clause in the query or that no query has yet been executed. -1 indicates that the query
       returned an error.
       
       If the number of affected rows is greater than the maximum integer value(<info> PHP_INT_MAX </info>), the
       number of affected rows will be returned as a string.

<comment>See Also:</comment>
   * <strong>mysqli_num_rows()</strong>
   * <strong>mysqli_info()</strong>


id: mysqli_connect
type: function
doc:
<comment>Description:</comment>
  Pseudonim pentru mysqli::__construct
  
  Această funcție este pseudonim pentru:  mysqli::__construct
  
  Cu toate că documentația mysqli::__construct include și exemplele procedurale ce utilizează
  funcția <strong>mysqli_connect()</strong>, iată un scurt exemplu:


id: mysqli_connect_errno
type: function
doc:
<comment>Description:</comment>
  Returns the error code from last connect call
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns the last error code number from the last call to  <strong>mysqli_connect()</strong>.
  
  Client error message numbers are listed in the MySQL  errmsg.h header file, server error message
  numbers are listed in mysqld_error.h. In the MySQL source distribution you can find a complete
  list of error messages and error numbers in the file Docs/mysqld_error.txt.

<comment>Return:</comment>
  <info>int</info>  An error code value for the last call to <strong>mysqli_connect()</strong>, if it failed. zero means no error
       occurred.

<comment>See Also:</comment>
   * <strong>mysqli_connect()</strong>
   * <strong>mysqli_connect_error()</strong>
   * <strong>mysqli_errno()</strong>
   * <strong>mysqli_error()</strong>
   * <strong>mysqli_sqlstate()</strong>


id: mysqli_connect_error
type: function
doc:
<comment>Description:</comment>
  Returns a string description of the last connect error
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns the last error message string from the last call to  <strong>mysqli_connect()</strong>.

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

<comment>See Also:</comment>
   * <strong>mysqli_connect()</strong>
   * <strong>mysqli_connect_errno()</strong>
   * <strong>mysqli_errno()</strong>
   * <strong>mysqli_error()</strong>
   * <strong>mysqli_sqlstate()</strong>


id: mysqli_data_seek
type: function
doc:
<comment>Description:</comment>
  Adjusts the result pointer to an arbitrary row in the result
  
  Stil obiect-orientat
  
  Stil procedural
  
  The <strong>mysqli_data_seek()</strong> function seeks to an arbitrary result pointer specified by the <strong>$offset</strong> in
  the result set.

<comment>Param:</comment>
  <info>mysqli_result</info>  <strong>$result</strong>  Numai stilul procedural: Un identificator al setului de
                          rezultate întors de <strong>mysqli_query()</strong>,
                          <strong>mysqli_store_result()</strong> sau <strong>mysqli_use_result
                          ()</strong>.
  <info>int          </info>  <strong>$offset</strong>  The field offset. Must be between zero and the total number of rows minus
                          one (0..<strong>mysqli_num_rows()</strong> - 1).

<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>mysqli_store_result()</strong>
   * <strong>mysqli_fetch_row()</strong>
   * <strong>mysqli_fetch_array()</strong>
   * <strong>mysqli_fetch_assoc()</strong>
   * <strong>mysqli_fetch_object()</strong>
   * <strong>mysqli_query()</strong>
   * <strong>mysqli_num_rows()</strong>


id: mysqli_driver
type: class
doc:
<comment>Description:</comment>
  The <class>mysqli_driver</class> class is an instance of the monostate pattern, i.e. there is only one driver
  which can be accessed though an arbitrary amount of <class>mysqli_driver</class> instances.


id: mysqli_driver::embedded_server_end
type: function
doc:
<comment>Description:</comment>
  Stop embedded server
  
  Stil obiect-orientat
  
  Stil procedural
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

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


id: mysqli_driver::embedded_server_start
type: function
doc:
<comment>Description:</comment>
  Initialize and start embedded server
  
  Stil obiect-orientat
  
  Stil procedural
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

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


id: mysqli_errno
type: function
doc:
<comment>Description:</comment>
  Returns the error code for the most recent function call
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns the last error code for the most recent MySQLi function call that can succeed or fail.
  
  Client error message numbers are listed in the MySQL  errmsg.h header file, server error message
  numbers are listed in mysqld_error.h. In the MySQL source distribution you can find a complete
  list of error messages and error numbers in the file  Docs/mysqld_error.txt.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>int</info>  An error code value for the last call, if it failed. zero means no error occurred.

<comment>See Also:</comment>
   * <strong>mysqli_connect_errno()</strong>
   * <strong>mysqli_connect_error()</strong>
   * <strong>mysqli_error()</strong>
   * <strong>mysqli_sqlstate()</strong>


id: mysqli_error
type: function
doc:
<comment>Description:</comment>
  Returns a string description of the last error
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns the last error message for the most recent MySQLi function call that can succeed or fail.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>string</info>  A string that describes the error. An empty string if no error occurred.

<comment>See Also:</comment>
   * <strong>mysqli_connect_errno()</strong>
   * <strong>mysqli_connect_error()</strong>
   * <strong>mysqli_errno()</strong>
   * <strong>mysqli_sqlstate()</strong>


id: mysqli_error_list
type: function
doc:
<comment>Description:</comment>
  Returns a list of errors from the last command executed
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns a array of errors for the most recent MySQLi function call that can succeed or fail.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>array</info>  A list of errors, each as an associative <info>array</info> containing the errno, error, and sqlstate.

<comment>See Also:</comment>
   * <strong>mysqli_connect_errno()</strong>
   * <strong>mysqli_connect_error()</strong>
   * <strong>mysqli_error()</strong>
   * <strong>mysqli_sqlstate()</strong>


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


id: mysqli_execute
type: function
doc:
<comment>Description:</comment>
  Alias for mysqli_stmt_execute
  
  Această funcție este pseudonim pentru:  <strong>mysqli_stmt_execute()</strong>.

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


id: mysqli_fetch_all
type: function
doc:
<comment>Description:</comment>
  Fetches all result rows as an associative array, a numeric array, or both
  
  Stil obiect-orientat
  
  Stil procedural
  
  <strong>mysqli_fetch_all()</strong> fetches all result rows and returns the result  set as an associative array, a
  numeric array, or both.

<comment>Param:</comment>
  <info>mysqli_result</info>  <strong>$result    </strong>  Numai stilul procedural: Un identificator al setului de
                              rezultate întors de <strong>mysqli_query()</strong>,
                              <strong>mysqli_store_result()</strong> sau <strong>mysqli_use_result
                              ()</strong>.
  <info>int          </info>  <strong>$resulttype</strong>  This optional parameter is a constant indicating what type of array
                              should be produced from the current row data. The possible values for
                              this parameter are the constants <info>MYSQLI_ASSOC</info>, <info>MYSQLI_NUM</info>, or
                              <info>MYSQLI_BOTH</info>.

<comment>Return:</comment>
  <info>mixed</info>  Returns an array of associative or numeric arrays holding result rows.

<comment>See Also:</comment>
   * <strong>mysqli_fetch_array()</strong>
   * <strong>mysqli_query()</strong>


id: mysqli_fetch_array
type: function
doc:
<comment>Description:</comment>
  Fetch a result row as an associative, a numeric array, or both
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns an array that corresponds to the fetched row or <info>null</info> if there are no more rows for the
  resultset represented by the <strong>$result</strong> parameter.
  
  <strong>mysqli_fetch_array()</strong> is an extended version of the <strong>mysqli_fetch_row()</strong> function. In addition to
  storing the data in the numeric indices of the result array, the  <strong>mysqli_fetch_array()</strong> function
  can also store the data in associative indices, using the field names of the result set as keys.
  
  Numele câmpurilor întoarse de această funcție sunt sensibile
  la literele majuscule/minuscule.
  
  Această funcție stabilește câmpurile NULL la valoarea PHP <info>null</info>.
  
  If two or more columns of the result have the same field names, the last column will take
  precedence and overwrite the earlier data. In order to access multiple columns with the same name,
  the numerically indexed version of the row must be used.

<comment>Param:</comment>
  <info>mysqli_result</info>  <strong>$result    </strong>  Numai stilul procedural: Un identificator al setului de
                              rezultate întors de <strong>mysqli_query()</strong>,
                              <strong>mysqli_store_result()</strong> sau <strong>mysqli_use_result
                              ()</strong>.
  <info>int          </info>  <strong>$resulttype</strong>  This optional parameter is a constant indicating what type of array
                              should be produced from the current row data. The possible values for
                              this parameter are the constants <info>MYSQLI_ASSOC</info>, <info>MYSQLI_NUM</info>, or
                              <info>MYSQLI_BOTH</info>.
                              
                              By using the <info>MYSQLI_ASSOC</info> constant this function will behave
                              identically to the <strong>mysqli_fetch_assoc()</strong>, while <info>MYSQLI_NUM</info> will behave
                              identically to the <strong>mysqli_fetch_row()</strong> function. The final option
                              <info>MYSQLI_BOTH</info> will create a single array with the attributes of both.

<comment>Return:</comment>
  <info>mixed</info>  Returns an array of strings that corresponds to the fetched row or <info>null</info> if there are no
         more rows in resultset.

<comment>See Also:</comment>
   * <strong>mysqli_fetch_assoc()</strong>
   * <strong>mysqli_fetch_row()</strong>
   * <strong>mysqli_fetch_object()</strong>
   * <strong>mysqli_query()</strong>
   * <strong>mysqli_data_seek()</strong>


id: mysqli_fetch_assoc
type: function
doc:
<comment>Description:</comment>
  Fetch a result row as an associative array
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns an associative array that corresponds to the fetched row or <info>null</info> if there are no more
  rows.
  
  Numele câmpurilor întoarse de această funcție sunt sensibile
  la literele majuscule/minuscule.
  
  Această funcție stabilește câmpurile NULL la valoarea PHP <info>null</info>.

<comment>Param:</comment>
  <info>mysqli_result</info>  <strong>$result</strong>  Numai stilul procedural: Un identificator al setului de
                          rezultate întors de <strong>mysqli_query()</strong>,
                          <strong>mysqli_store_result()</strong> sau <strong>mysqli_use_result
                          ()</strong>.

<comment>Return:</comment>
  <info>array</info>  Returns an associative array of strings representing the fetched row in the result set,
         where each key in the array represents the name of one of the result set's columns or <info>null</info>
         if there are no more rows in resultset.
         
         If two or more columns of the result have the same field names, the last column will take
         precedence. To access the other column(s) of the same name, you either need to access the
         result with numeric indices by using <strong>mysqli_fetch_row()</strong> or add alias names.

<comment>See Also:</comment>
   * <strong>mysqli_fetch_array()</strong>
   * <strong>mysqli_fetch_row()</strong>
   * <strong>mysqli_fetch_object()</strong>
   * <strong>mysqli_query()</strong>
   * <strong>mysqli_data_seek()</strong>


id: mysqli_fetch_field
type: function
doc:
<comment>Description:</comment>
  Returns the next field in the result set
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns the definition of one column of a result set as an object. Call this function repeatedly
  to retrieve information about all columns in the result set.

<comment>Param:</comment>
  <info>mysqli_result</info>  <strong>$result</strong>  Numai stilul procedural: Un identificator al setului de
                          rezultate întors de <strong>mysqli_query()</strong>,
                          <strong>mysqli_store_result()</strong> sau <strong>mysqli_use_result
                          ()</strong>.

<comment>Return:</comment>
  <info>object</info>  Returns an object which contains field definition information or <info>false</info> if no field
          information is available.
          
          Object propertiesPropertyDescriptionnameThe name of the columnorgnameOriginal column name
          if an alias was specifiedtableThe name of the table this field belongs to (if not
          calculated)orgtableOriginal table name if an alias was specifieddefReserved for default
          value, currently always ""dbDatabase (since PHP 5.3.6)catalogThe catalog name, always
          "def" (since PHP 5.3.6)max_lengthThe maximum width of the field for the result
          set.lengthThe width of the field, as specified in the table definition.charsetnrThe
          character set number for the field.flagsAn integer representing the bit-flags for the
          field.typeThe data type used for this fielddecimalsThe number of decimals used (for
          integer fields)

<comment>See Also:</comment>
   * <strong>mysqli_num_fields()</strong>
   * <strong>mysqli_fetch_field_direct()</strong>
   * <strong>mysqli_fetch_fields()</strong>
   * <strong>mysqli_field_seek()</strong>


id: mysqli_fetch_field_direct
type: function
doc:
<comment>Description:</comment>
  Fetch meta-data for a single field
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns an object which contains field definition information from the specified result set.

<comment>Param:</comment>
  <info>mysqli_result</info>  <strong>$result </strong>  Numai stilul procedural: Un identificator al setului de
                           rezultate întors de <strong>mysqli_query()</strong>,
                           <strong>mysqli_store_result()</strong> sau <strong>mysqli_use_result
                           ()</strong>.
  <info>int          </info>  <strong>$fieldnr</strong>  The field number. This value must be in the range from  <return>0</return> to <return>number of
                           fields - 1</return>.

<comment>Return:</comment>
  <info>object</info>  Returns an object which contains field definition information or <info>false</info> if no field
          information for specified <return>fieldnr</return> is  available.
          
          Object attributesAttributeDescriptionnameThe name of the columnorgnameOriginal column name
          if an alias was specifiedtableThe name of the table this field belongs to (if not
          calculated)orgtableOriginal table name if an alias was specifieddefThe default value for
          this field, represented as a stringmax_lengthThe maximum width of the field for the result
          set.lengthThe width of the field, as specified in the table definition.charsetnrThe
          character set number for the field.flagsAn integer representing the bit-flags for the
          field.typeThe data type used for this fielddecimalsThe number of decimals used (for
          numeric fields)

<comment>See Also:</comment>
   * <strong>mysqli_num_fields()</strong>
   * <strong>mysqli_fetch_field()</strong>
   * <strong>mysqli_fetch_fields()</strong>


id: mysqli_fetch_fields
type: function
doc:
<comment>Description:</comment>
  Returns an array of objects representing the fields in a result set
  
  Stil obiect-orientat
  
  Stil procedural
  
  This function serves an identical purpose to the  <strong>mysqli_fetch_field()</strong> function with the single
  difference that, instead of returning one object at a time for each field, the columns are
  returned as an array of objects.

<comment>Param:</comment>
  <info>mysqli_result</info>  <strong>$result</strong>  Numai stilul procedural: Un identificator al setului de
                          rezultate întors de <strong>mysqli_query()</strong>,
                          <strong>mysqli_store_result()</strong> sau <strong>mysqli_use_result
                          ()</strong>.

<comment>Return:</comment>
  <info>array</info>  Returns an array of objects which contains field definition information or <info>false</info> if no
         field information is available.
         
         Object propertiesPropertyDescriptionnameThe name of the columnorgnameOriginal column name
         if an alias was specifiedtableThe name of the table this field belongs to (if not
         calculated)orgtableOriginal table name if an alias was specifiedmax_lengthThe maximum width
         of the field for the result set.length The width of the field, in bytes, as specified in
         the table definition. Note that  this number (bytes) might differ from your table
         definition value (characters), depending on the character set you use. For example, the
         character set utf8 has 3 bytes per character,  so varchar(10) will return a length of 30
         for utf8 (10*3), but return 10 for latin1 (10*1). charsetnrThe character set number (id)
         for the field.flagsAn integer representing the bit-flags for the field.typeThe data type
         used for this fielddecimalsThe number of decimals used (for integer fields)

<comment>See Also:</comment>
   * <strong>mysqli_num_fields()</strong>
   * <strong>mysqli_fetch_field_direct()</strong>
   * <strong>mysqli_fetch_field()</strong>


id: mysqli_fetch_lengths
type: function
doc:
<comment>Description:</comment>
  Returns the lengths of the columns of the current row in the result set
  
  Stil obiect-orientat
  
  Stil procedural
  
  The <strong>mysqli_fetch_lengths()</strong> function returns an array containing the lengths of every column of the
  current row within the result set.

<comment>Param:</comment>
  <info>mysqli_result</info>  <strong>$result</strong>  Numai stilul procedural: Un identificator al setului de
                          rezultate întors de <strong>mysqli_query()</strong>,
                          <strong>mysqli_store_result()</strong> sau <strong>mysqli_use_result
                          ()</strong>.

<comment>Return:</comment>
  <info>array</info>  An array of integers representing the size of each column (not including any terminating
         null characters). <info>false</info> if an error occurred.
         
         <strong>mysqli_fetch_lengths()</strong> is valid only for the current row of the result set. It returns
         <info>false</info> if you call it before calling mysqli_fetch_row/array/object or after retrieving all
         rows in the result.


id: mysqli_fetch_object
type: function
doc:
<comment>Description:</comment>
  Returns the current row of a result set as an object
  
  Stil obiect-orientat
  
  Stil procedural
  
  The <strong>mysqli_fetch_object()</strong> will return the current row result set as an object where the attributes
  of the object represent the names of the fields found within the result set.
  
  Note that <strong>mysqli_fetch_object()</strong> sets the properties of the object before calling the object
  constructor.

<comment>Param:</comment>
  <info>mysqli_result</info>  <strong>$result    </strong>  Numai stilul procedural: Un identificator al setului de
                              rezultate întors de <strong>mysqli_query()</strong>,
                              <strong>mysqli_store_result()</strong> sau <strong>mysqli_use_result
                              ()</strong>.
  <info>string       </info>  <strong>$class_name</strong>  The name of the class to instantiate, set the properties of and
                              return. If not specified, a <class>stdClass</class> object is returned.
  <info>array        </info>  <strong>$params    </strong>  An optional <info>array</info> of parameters to pass to the constructor for
                              <strong>$class_name</strong> objects.

<comment>Return:</comment>
  <info>object</info>  Returns an object with string properties that corresponds to the fetched row or <info>null</info> if
          there are no more rows in resultset.
          
          Numele câmpurilor întoarse de această funcție sunt sensibile
          la literele majuscule/minuscule.
          
          Această funcție stabilește câmpurile NULL la valoarea PHP <info>null</info>.

<comment>See Also:</comment>
   * <strong>mysqli_fetch_array()</strong>
   * <strong>mysqli_fetch_assoc()</strong>
   * <strong>mysqli_fetch_row()</strong>
   * <strong>mysqli_query()</strong>
   * <strong>mysqli_data_seek()</strong>


id: mysqli_fetch_row
type: function
doc:
<comment>Description:</comment>
  Get a result row as an enumerated array
  
  Stil obiect-orientat
  
  Stil procedural
  
  Fetches one row of data from the result set and returns it as an enumerated array, where each
  column is stored in an array offset starting from 0 (zero). Each subsequent call to this function
  will return the next row within the result set, or <info>null</info> if there are no more rows.

<comment>Param:</comment>
  <info>mysqli_result</info>  <strong>$result</strong>  Numai stilul procedural: Un identificator al setului de
                          rezultate întors de <strong>mysqli_query()</strong>,
                          <strong>mysqli_store_result()</strong> sau <strong>mysqli_use_result
                          ()</strong>.

<comment>Return:</comment>
  <info>mixed</info>  <strong>mysqli_fetch_row()</strong> returns an array of strings that corresponds to the fetched row or <info>null</info>
         if there are no more rows in result set.
         
         Această funcție stabilește câmpurile NULL la valoarea PHP <info>null</info>.

<comment>See Also:</comment>
   * <strong>mysqli_fetch_array()</strong>
   * <strong>mysqli_fetch_assoc()</strong>
   * <strong>mysqli_fetch_object()</strong>
   * <strong>mysqli_query()</strong>
   * <strong>mysqli_data_seek()</strong>


id: mysqli_field_count
type: function
doc:
<comment>Description:</comment>
  Returns the number of columns for the most recent query
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns the number of columns for the most recent query on the connection represented by the <strong>$link</strong>
  parameter. This function can be useful when using the <strong>mysqli_store_result()</strong> function to determine
  if the query should have produced a non-empty result set or not without knowing the nature of the
  query.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>int</info>  An integer representing the number of fields in a result set.


id: mysqli_field_seek
type: function
doc:
<comment>Description:</comment>
  Set result pointer to a specified field offset
  
  Stil obiect-orientat
  
  Stil procedural
  
  Sets the field cursor to the given offset. The next call to  <strong>mysqli_fetch_field()</strong> will retrieve
  the field definition of the column associated with that offset.
  
  To seek to the beginning of a row, pass an offset value of zero.

<comment>Param:</comment>
  <info>mysqli_result</info>  <strong>$result </strong>  Numai stilul procedural: Un identificator al setului de
                           rezultate întors de <strong>mysqli_query()</strong>,
                           <strong>mysqli_store_result()</strong> sau <strong>mysqli_use_result
                           ()</strong>.
  <info>int          </info>  <strong>$fieldnr</strong>  The field number. This value must be in the range from  <return>0</return> to <return>number of
                           fields - 1</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>mysqli_fetch_field()</strong>


id: mysqli_field_tell
type: function
doc:
<comment>Description:</comment>
  Get current field offset of a result pointer
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns the position of the field cursor used for the last <strong>mysqli_fetch_field()</strong> call. This value
  can be used as an argument to <strong>mysqli_field_seek()</strong>.

<comment>Param:</comment>
  <info>mysqli_result</info>  <strong>$result</strong>  Numai stilul procedural: Un identificator al setului de
                          rezultate întors de <strong>mysqli_query()</strong>,
                          <strong>mysqli_store_result()</strong> sau <strong>mysqli_use_result
                          ()</strong>.

<comment>Return:</comment>
  <info>int</info>  Returns current offset of field cursor.

<comment>See Also:</comment>
   * <strong>mysqli_fetch_field()</strong>
   * <strong>mysqli_field_seek()</strong>


id: mysqli_free_result
type: function
doc:
<comment>Description:</comment>
  Frees the memory associated with a result
  
  Stil obiect-orientat
  
  Stil procedural
  
  Frees the memory associated with the result.

<comment>Param:</comment>
  <info>mysqli_result</info>  <strong>$result</strong>  Numai stilul procedural: Un identificator al setului de
                          rezultate întors de <strong>mysqli_query()</strong>,
                          <strong>mysqli_store_result()</strong> sau <strong>mysqli_use_result
                          ()</strong>.

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

<comment>See Also:</comment>
   * <strong>mysqli_query()</strong>
   * <strong>mysqli_stmt_get_result()</strong>
   * <strong>mysqli_store_result()</strong>
   * <strong>mysqli_use_result()</strong>


id: mysqli_get_client_stats
type: function
doc:
<comment>Description:</comment>
  Returns client per-process statistics
  
  Returns client per-process statistics. Disponibil numai cu mysqlnd.

<comment>Return:</comment>
  <info>array</info>  Returns an array with client stats if success, <info>false</info> otherwise.

<comment>See Also:</comment>
   * Stats description


id: mysqli_get_client_version
type: function
doc:
<comment>Description:</comment>
  Returns the MySQL client version as an integer
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns client version number as an integer.

<comment>Return:</comment>
  <info>int</info>  A number that represents the MySQL client library version in format: <return>main_version*10000 +
       minor_version *100 + sub_version</return>. For example, 4.1.0 is returned as 40100.
       
       This is useful to quickly determine the version of the client library to know if some
       capability exists.

<comment>See Also:</comment>
   * <strong>mysqli_get_client_info()</strong>
   * <strong>mysqli_get_server_info()</strong>
   * <strong>mysqli_get_server_version()</strong>


id: mysqli_get_host_info
type: function
doc:
<comment>Description:</comment>
  Returns a string representing the type of connection used
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns a string describing the connection represented by the <strong>$link</strong> parameter (including the
  server host name).

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>string</info>  A character string representing the server hostname and the connection type.

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


id: mysqli_get_links_stats
type: function
doc:
<comment>Description:</comment>
  Return information about open and cached links
  
  <strong>mysqli_get_links_stats()</strong> returns information about open and cached MySQL links.

<comment>Return:</comment>
  <info>array</info>  <strong>mysqli_get_links_stats()</strong> returns an associative array with three elements, keyed as
         follows: <strong>$total</strong> An <info>int</info> indicating the total number of open links in any state.
         <strong>$active_plinks</strong> An <info>int</info> representing the number of active persistent connections.
         <strong>$cached_plinks</strong> An <info>int</info> representing the number of inactive persistent connections.
         
         An <info>int</info> indicating the total number of open links in any state.
         
         An <info>int</info> representing the number of active persistent connections.
         
         An <info>int</info> representing the number of inactive persistent connections.


id: mysqli_get_proto_info
type: function
doc:
<comment>Description:</comment>
  Returns the version of the MySQL protocol used
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns an integer representing the MySQL protocol version used by the connection represented by
  the <strong>$link</strong> parameter.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>int</info>  Returns an integer representing the protocol version.

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


id: mysqli_get_server_version
type: function
doc:
<comment>Description:</comment>
  Returns the version of the MySQL server as an integer
  
  Stil obiect-orientat
  
  Stil procedural
  
  The <strong>mysqli_get_server_version()</strong> function returns the version of the server connected to
  (represented by the <strong>$link</strong> parameter) as an integer.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>int</info>  An integer representing the server version.
       
       The form of this version number is <return>main_version * 10000 + minor_version * 100 + sub_version</return>
       (i.e. version 4.1.0 is 40100).

<comment>See Also:</comment>
   * <strong>mysqli_get_client_info()</strong>
   * <strong>mysqli_get_client_version()</strong>
   * <strong>mysqli_get_server_info()</strong>


id: mysqli_info
type: function
doc:
<comment>Description:</comment>
  Retrieves information about the most recently executed query
  
  Stil obiect-orientat
  
  Stil procedural
  
  The <strong>mysqli_info()</strong> function returns a string providing information about the last query executed.
  The nature of this string is provided below:
  
  Possible mysqli_info return valuesQuery typeExample result stringINSERT INTO...SELECT...Records:
  100 Duplicates: 0 Warnings: 0INSERT INTO...VALUES (...),(...),(...)Records: 3 Duplicates: 0
  Warnings: 0LOAD DATA INFILE ...Records: 1 Deleted: 0 Skipped: 0 Warnings: 0ALTER TABLE ...Records:
  3 Duplicates: 0 Warnings: 0UPDATE ...Rows matched: 40 Changed: 40 Warnings: 0
  
  Queries which do not fall into one of the preceding formats are not supported. In these
  situations, <strong>mysqli_info()</strong> will return an empty string.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>string</info>  A character string representing additional information about the most recently executed
          query.

<comment>See Also:</comment>
   * <strong>mysqli_affected_rows()</strong>
   * <strong>mysqli_warning_count()</strong>
   * <strong>mysqli_num_rows()</strong>


id: mysqli_insert_id
type: function
doc:
<comment>Description:</comment>
  Returns the auto generated id used in the latest query
  
  Stil obiect-orientat
  
  Stil procedural
  
  The <strong>mysqli_insert_id()</strong> function returns the ID generated by a query (usually INSERT) on a table
  with a column having the AUTO_INCREMENT attribute. If no INSERT or UPDATE statements were sent via
  this
  connection, or if the modified table does not have a column with the AUTO_INCREMENT attribute,
  this function will return zero.
  
  Performing an INSERT or UPDATE statement using the LAST_INSERT_ID() function will also modify the
  value returned by the <strong>mysqli_insert_id()</strong> function.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>mixed</info>  The value of the <return>AUTO_INCREMENT</return> field that was updated by the previous query. Returns zero
         if there was no previous query on the connection or if the query did not update an
         <return>AUTO_INCREMENT</return> value.
         
         If the number is greater than maximal int value, <strong>mysqli_insert_id()</strong> will return a string.


id: mysqli_num_fields
type: function
doc:
<comment>Description:</comment>
  Get the number of fields in a result
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns the number of fields from specified result set.

<comment>Param:</comment>
  <info>mysqli_result</info>  <strong>$result</strong>  Numai stilul procedural: Un identificator al setului de
                          rezultate întors de <strong>mysqli_query()</strong>,
                          <strong>mysqli_store_result()</strong> sau <strong>mysqli_use_result
                          ()</strong>.

<comment>Return:</comment>
  <info>int</info>  The number of fields from a result set.

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


id: mysqli_num_rows
type: function
doc:
<comment>Description:</comment>
  Gets the number of rows in a result
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns the number of rows in the result set.
  
  The behaviour of <strong>mysqli_num_rows()</strong> depends on whether  buffered or unbuffered result sets are
  being used. For unbuffered result sets, <strong>mysqli_num_rows()</strong> will not return the correct number of
  rows until all the rows in the result have been retrieved.

<comment>Param:</comment>
  <info>mysqli_result</info>  <strong>$result</strong>  Numai stilul procedural: Un identificator al setului de
                          rezultate întors de <strong>mysqli_query()</strong>,
                          <strong>mysqli_store_result()</strong> sau <strong>mysqli_use_result
                          ()</strong>.

<comment>Return:</comment>
  <info>int</info>  Returns number of rows in the result set.
       
       If the number of rows is greater than <info>PHP_INT_MAX</info>, the number will be returned as a string.

<comment>See Also:</comment>
   * <strong>mysqli_affected_rows()</strong>
   * <strong>mysqli_store_result()</strong>
   * <strong>mysqli_use_result()</strong>
   * <strong>mysqli_query()</strong>


id: mysqli_report
type: function
doc:
<comment>Description:</comment>
  Pseudonim pentru mysqli_driver->report_mode
  
  Această funcție este pseudonim pentru:  mysqli_driver-&gt;report_mode


id: mysqli_result
type: class
doc:
<comment>Description:</comment>
  Represents the result set obtained from a query against the database.
  
  Jurnal al modificărilor


id: mysqli_sqlstate
type: function
doc:
<comment>Description:</comment>
  Returns the SQLSTATE error from previous MySQL operation
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns a string containing the SQLSTATE error code for the last error. The error code consists of
  five characters. <return>'00000'</return> means no error. The values are specified by ANSI SQL and ODBC. For a list
  of possible values, see http://dev.mysql.com/doc/mysql/en/error-handling.html.
  
  Note that not all MySQL errors are yet mapped to SQLSTATE's. The value <return>HY000</return> (general error) is
  used for unmapped errors.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>string</info>  Returns a string containing the SQLSTATE error code for the last error. The error code
          consists of five characters. <return>'00000'</return> means no error.

<comment>See Also:</comment>
   * <strong>mysqli_errno()</strong>
   * <strong>mysqli_error()</strong>


id: mysqli_stmt::__construct
type: function
doc:
<comment>Description:</comment>
  Constructs a new mysqli_stmt object
  
  This method constructs a new <class>mysqli_stmt</class> object.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link </strong>  Numai stilul procedural: Un identificator al legăturii întors
                  de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>
  <info>string</info>  <strong>$query</strong>  The query, as a string. If this parameter is omitted, then the constructor behaves
                  identically to <strong>mysqli_stmt_init()</strong>, if provided, then it behaves as per
                  <strong>mysqli_prepare()</strong>.

<comment>See Also:</comment>
   * <strong>mysqli_prepare()</strong>
   * <strong>mysqli_stmt_init()</strong>


id: mysqli_stmt::attr_get
type: function
doc:
<comment>Description:</comment>
  Used to get the current value of a statement attribute
  
  Stil obiect-orientat
  
  Stil procedural
  
  Gets the current value of a statement attribute.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt</strong>  Numai stilul procedural: Un identificator al declarației întors
                      de <strong>mysqli_stmt_init()</strong>.
  <info>int        </info>  <strong>$attr</strong>  The attribute that you want to get.

<comment>Return:</comment>
  <info>int</info>  Returns <info>false</info> if the attribute is not found, otherwise returns the value of the attribute.


id: mysqli_stmt::attr_set
type: function
doc:
<comment>Description:</comment>
  Used to modify the behavior of a prepared statement
  
  Stil obiect-orientat
  
  Stil procedural
  
  Used to modify the behavior of a prepared statement. This function may be called multiple times to
  set several attributes.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt</strong>  Numai stilul procedural: Un identificator al declarației întors
                      de <strong>mysqli_stmt_init()</strong>.
  <info>int        </info>  <strong>$attr</strong>  The attribute that you want to set. It can have one of the following values:
                      Attribute valuesCharacterDescriptionMYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH Setting
                      to <info>true</info> causes <strong>mysqli_stmt_store_result()</strong> to update the metadata
                      <return>MYSQL_FIELD-&gt;max_length</return> value. MYSQLI_STMT_ATTR_CURSOR_TYPE Type of cursor
                      to open for statement when <strong>mysqli_stmt_execute()</strong> is invoked. <strong>$mode</strong> can be
                      <return>MYSQLI_CURSOR_TYPE_NO_CURSOR</return> (the default) or <return>MYSQLI_CURSOR_TYPE_READ_ONLY</return>.
                      MYSQLI_STMT_ATTR_PREFETCH_ROWS Number of rows to fetch from server at a time
                      when using a cursor. <strong>$mode</strong> can be in the range from 1 to the maximum value of
                      unsigned long. The default is 1.
                      
                      If you use the <return>MYSQLI_STMT_ATTR_CURSOR_TYPE</return> option with
                      <return>MYSQLI_CURSOR_TYPE_READ_ONLY</return>, a cursor is opened for the statement when you
                      invoke <strong>mysqli_stmt_execute()</strong>. If there is already an open cursor from a
                      previous <strong>mysqli_stmt_execute()</strong> call, it closes the cursor before opening a new
                      one. <strong>mysqli_stmt_reset()</strong> also closes any open cursor before preparing the
                      statement for re-execution. <strong>mysqli_stmt_free_result()</strong> closes any open cursor.
                      
                      If you open a cursor for a prepared statement, <strong>mysqli_stmt_store_result()</strong> is
                      unnecessary.
  <info>int        </info>  <strong>$mode</strong>  The value to assign to the attribute.

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

<comment>See Also:</comment>
   * Connector/MySQL mysql_stmt_attr_set()


id: mysqli_stmt::bind_param
type: function
doc:
<comment>Description:</comment>
  Binds variables to a prepared statement as parameters
  
  Stil obiect-orientat
  
  Stil procedural
  
  Bind variables for the parameter markers in the SQL statement that was passed to <strong>mysqli_prepare()</strong>.
  
  If data size of a variable exceeds max. allowed packet size (max_allowed_packet), you have to
  specify <return>b</return> in <strong>$types</strong> and use <strong>mysqli_stmt_send_long_data()</strong> to send the data in packets.
  
  Care must be taken when using <strong>mysqli_stmt_bind_param()</strong> in conjunction with <strong>call_user_func_array()</strong>.
  Note that <strong>mysqli_stmt_bind_param()</strong> requires parameters to be passed by reference, whereas
  <strong>call_user_func_array()</strong> can accept as a parameter a list of variables that can represent references
  or values.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt </strong>  Numai stilul procedural: Un identificator al declarației întors
                       de <strong>mysqli_stmt_init()</strong>.
  <info>string     </info>  <strong>$types</strong>  A string that contains one or more characters which specify the types for the
                       corresponding bind variables: Type specification
                       charsCharacterDescriptionicorresponding variable has type
                       integerdcorresponding variable has type doublescorresponding variable has
                       type stringbcorresponding variable is a blob and will be sent in packets
  <info>mixed      </info>  <strong>$var  </strong>  The number of variables and length of string  <strong>$types</strong> must match the
                       parameters in the statement.

<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>mysqli_stmt_bind_result()</strong>
   * <strong>mysqli_stmt_execute()</strong>
   * <strong>mysqli_stmt_fetch()</strong>
   * <strong>mysqli_prepare()</strong>
   * <strong>mysqli_stmt_send_long_data()</strong>
   * <strong>mysqli_stmt_errno()</strong>
   * <strong>mysqli_stmt_error()</strong>


id: mysqli_stmt::bind_result
type: function
doc:
<comment>Description:</comment>
  Binds variables to a prepared statement for result storage
  
  Stil obiect-orientat
  
  Stil procedural
  
  Binds columns in the result set to variables.
  
  When <strong>mysqli_stmt_fetch()</strong> is called to fetch data, the MySQL client/server protocol places the data
  for the bound columns into the specified variables <strong>$var</strong>/<strong>$vars</strong>.
  
  Note that all columns must be bound after  <strong>mysqli_stmt_execute()</strong> and prior to calling
  <strong>mysqli_stmt_fetch()</strong>. Depending on column types bound variables can silently change to the
  corresponding PHP type.
  
  A column can be bound or rebound at any time, even after a result set has been partially
  retrieved. The new binding takes effect the next time  <strong>mysqli_stmt_fetch()</strong> is called.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt</strong>  Numai stilul procedural: Un identificator al declarației întors
                      de <strong>mysqli_stmt_init()</strong>.
  <info>mixed      </info>  <strong>$var </strong>  The first variable to be bound.
  <info>mixed      </info>  <strong>$vars</strong>  Further variables to be bound.

<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>mysqli_stmt_get_result()</strong>
   * <strong>mysqli_stmt_bind_param()</strong>
   * <strong>mysqli_stmt_execute()</strong>
   * <strong>mysqli_stmt_fetch()</strong>
   * <strong>mysqli_prepare()</strong>
   * <strong>mysqli_stmt_prepare()</strong>
   * <strong>mysqli_stmt_init()</strong>
   * <strong>mysqli_stmt_errno()</strong>
   * <strong>mysqli_stmt_error()</strong>


id: mysqli_stmt::close
type: function
doc:
<comment>Description:</comment>
  Closes a prepared statement
  
  Stil obiect-orientat
  
  Stil procedural
  
  Closes a prepared statement. <strong>mysqli_stmt_close()</strong> also deallocates the statement handle. If the
  current statement has pending or unread results, this function cancels them so that the next query
  can be executed.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt</strong>  Numai stilul procedural: Un identificator al declarației întors
                      de <strong>mysqli_stmt_init()</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>mysqli_prepare()</strong>


id: mysqli_stmt::data_seek
type: function
doc:
<comment>Description:</comment>
  Seeks to an arbitrary row in statement result set
  
  Stil obiect-orientat
  
  Stil procedural
  
  Seeks to an arbitrary result pointer in the statement result set.
  
  <strong>mysqli_stmt_store_result()</strong> must be called prior to <strong>mysqli_stmt_data_seek()</strong>.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt  </strong>  Numai stilul procedural: Un identificator al declarației întors
                        de <strong>mysqli_stmt_init()</strong>.
  <info>int        </info>  <strong>$offset</strong>  Must be between zero and the total number of rows minus one (0..
                        <strong>mysqli_stmt_num_rows()</strong> - 1).

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

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


id: mysqli_stmt::execute
type: function
doc:
<comment>Description:</comment>
  Executes a prepared Query
  
  Stil obiect-orientat
  
  Stil procedural
  
  Executes a query that has been previously prepared using the <strong>mysqli_prepare()</strong> function. When
  executed any parameter markers which exist will automatically be replaced with the appropriate
  data.
  
  If the statement is <return>UPDATE</return>, <return>DELETE</return>, or <return>INSERT</return>, the total number of affected rows can be determined
  by using the <strong>mysqli_stmt_affected_rows()</strong> function. Likewise, if the query yields a result set the
  <strong>mysqli_stmt_fetch()</strong> function is used.
  
  When using <strong>mysqli_stmt_execute()</strong>, the  <strong>mysqli_stmt_fetch()</strong> function must be used to fetch the data
  prior to performing any additional queries.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt</strong>  Numai stilul procedural: Un identificator al declarației întors
                      de <strong>mysqli_stmt_init()</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>mysqli_prepare()</strong>
   * <strong>mysqli_stmt_bind_param()</strong>
   * <strong>mysqli_stmt_get_result()</strong>


id: mysqli_stmt::fetch
type: function
doc:
<comment>Description:</comment>
  Fetch results from a prepared statement into the bound variables
  
  Stil obiect-orientat
  
  Stil procedural
  
  Fetch the result from a prepared statement into the variables bound by <strong>mysqli_stmt_bind_result()</strong>.
  
  Note that all columns must be bound by the application before calling <strong>mysqli_stmt_fetch()</strong>.
  
  Data are transferred unbuffered without calling <strong>mysqli_stmt_store_result()</strong> which can decrease
  performance (but reduces memory cost).

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt</strong>  Numai stilul procedural: Un identificator al declarației întors
                      de <strong>mysqli_stmt_init()</strong>.

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

<comment>See Also:</comment>
   * <strong>mysqli_prepare()</strong>
   * <strong>mysqli_stmt_errno()</strong>
   * <strong>mysqli_stmt_error()</strong>
   * <strong>mysqli_stmt_bind_result()</strong>


id: mysqli_stmt::free_result
type: function
doc:
<comment>Description:</comment>
  Frees stored result memory for the given statement handle
  
  Stil obiect-orientat
  
  Stil procedural
  
  Frees the result memory associated with the statement, which was allocated by
  <strong>mysqli_stmt_store_result()</strong>.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt</strong>  Numai stilul procedural: Un identificator al declarației întors
                      de <strong>mysqli_stmt_init()</strong>.

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

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


id: mysqli_stmt::get_result
type: function
doc:
<comment>Description:</comment>
  Gets a result set from a prepared statement
  
  Stil obiect-orientat
  
  Stil procedural
  
  Call to return a result set from a prepared statement query.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt</strong>  Numai stilul procedural: Un identificator al declarației întors
                      de <strong>mysqli_stmt_init()</strong>.

<comment>Return:</comment>
  <info>mysqli_result</info>  Returns a resultset for successful SELECT queries, or <info>false</info> for other DML queries
                 or on failure. The <strong>mysqli_errno()</strong> function can be used to distinguish between the
                 two types of failure.

<comment>See Also:</comment>
   * <strong>mysqli_prepare()</strong>
   * <strong>mysqli_stmt_result_metadata()</strong>
   * <strong>mysqli_stmt_fetch()</strong>
   * <strong>mysqli_fetch_array()</strong>
   * <strong>mysqli_stmt_store_result()</strong>
   * <strong>mysqli_errno()</strong>


id: mysqli_stmt::get_warnings
type: function
doc:
<comment>Description:</comment>
  Get result of SHOW WARNINGS
  
  Stil obiect-orientat
  
  Stil procedural
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

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


id: mysqli_stmt::more_results
type: function
doc:
<comment>Description:</comment>
  Check if there are more query results from a multiple query
  
  Stil obiect-orientat
  
  Stil procedural:
  
  Checks if there are more query results from a multiple query.

<comment>Param:</comment>
  <info>mysql_stmt</info>  <strong>$stmt</strong>  Numai stilul procedural: Un identificator al declarației întors
                     de <strong>mysqli_stmt_init()</strong>.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if more results exist, otherwise <info>false</info>.

<comment>See Also:</comment>
   * mysqli_stmt::next_result
   * mysqli::multi_query


id: mysqli_stmt::next_result
type: function
doc:
<comment>Description:</comment>
  Reads the next result from a multiple query
  
  Stil obiect-orientat
  
  Stil procedural:
  
  Reads the next result from a multiple query.

<comment>Param:</comment>
  <info>mysql_stmt</info>  <strong>$stmt</strong>  Numai stilul procedural: Un identificator al declarației întors
                     de <strong>mysqli_stmt_init()</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>
   * mysqli_stmt::more_results
   * mysqli::multi_query


id: mysqli_stmt::num_rows
type: function
doc:
<comment>Description:</comment>
  Return the number of rows in statements result set
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns the number of rows in the result set. The use of <strong>mysqli_stmt_num_rows()</strong> depends on whether
  or not you used <strong>mysqli_stmt_store_result()</strong> to buffer the entire result set in the statement
  handle.
  
  If you use <strong>mysqli_stmt_store_result()</strong>, <strong>mysqli_stmt_num_rows()</strong> may be called immediately.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt</strong>  Numai stilul procedural: Un identificator al declarației întors
                      de <strong>mysqli_stmt_init()</strong>.

<comment>Return:</comment>
  <info>int</info>  An integer representing the number of rows in result set.

<comment>See Also:</comment>
   * <strong>mysqli_stmt_affected_rows()</strong>
   * <strong>mysqli_prepare()</strong>
   * <strong>mysqli_stmt_store_result()</strong>


id: mysqli_stmt::prepare
type: function
doc:
<comment>Description:</comment>
  Prepare an SQL statement for execution
  
  Stil obiect-orientat
  
  Stil procedural
  
  Prepares the SQL query pointed to by the null-terminated string query.
  
  The parameter markers must be bound to application variables using <strong>mysqli_stmt_bind_param()</strong> and/or
  <strong>mysqli_stmt_bind_result()</strong> before executing the statement or fetching rows.
  
  In the case where you pass a statement to <strong>mysqli_stmt_prepare()</strong> that is longer than
  <return>max_allowed_packet</return> of the server, the returned error codes are different depending on whether you
  are using MySQL Native Driver (<return>mysqlnd</return>) or MySQL Client Library (<return>libmysqlclient</return>). The behavior is
  as follows:
  
  <return>mysqlnd</return> on Linux returns an error code of 1153. The error message means got a packet bigger than
  <return>max_allowed_packet</return> bytes.
  
  <return>mysqlnd</return> on Windows returns an error code 2006. This error message means server has gone away.
  
  <return>libmysqlclient</return> on all platforms returns an error code 2006. This error message means server has
  gone away.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt </strong>  Numai stilul procedural: Un identificator al declarației întors
                       de <strong>mysqli_stmt_init()</strong>.
  <info>string     </info>  <strong>$query</strong>  The query, as a string. It must consist of a single SQL statement.
                       
                       You can include one or more parameter markers in the SQL statement by
                       embedding question mark (<return>?</return>) characters at the appropriate positions.
                       
                       You should not add a terminating semicolon or <return>\g</return> to the statement.
                       
                       The markers are legal only in certain places in SQL statements. For example,
                       they are allowed in the VALUES() list of an INSERT statement (to specify
                       column values for a row), or in a comparison with a column in a WHERE clause
                       to specify a comparison value.
                       
                       However, they are not allowed for identifiers (such as table or column
                       names), in the select list that names the columns to be returned by a SELECT
                       statement), or to specify both operands of a binary operator such as the <return>=</return>
                       equal sign. The latter restriction is necessary because it would be
                       impossible to determine the parameter type. In general, parameters are legal
                       only in Data Manipulation Language (DML) statements, and not in Data
                       Definition Language (DDL) statements.

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

<comment>See Also:</comment>
   * <strong>mysqli_stmt_init()</strong>
   * <strong>mysqli_stmt_execute()</strong>
   * <strong>mysqli_stmt_fetch()</strong>
   * <strong>mysqli_stmt_bind_param()</strong>
   * <strong>mysqli_stmt_bind_result()</strong>
   * <strong>mysqli_stmt_get_result()</strong>
   * <strong>mysqli_stmt_close()</strong>


id: mysqli_stmt::reset
type: function
doc:
<comment>Description:</comment>
  Resets a prepared statement
  
  Stil obiect-orientat
  
  Stil procedural
  
  Resets a prepared statement on client and server to state after prepare.
  
  It resets the statement on the server, data sent using <strong>mysqli_stmt_send_long_data()</strong>,  unbuffered
  result sets and current errors. It does not clear bindings or stored result sets.  Stored result
  sets will be cleared when executing the prepared statement (or closing it).
  
  To prepare a statement with another query use function <strong>mysqli_stmt_prepare()</strong>.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt</strong>  Numai stilul procedural: Un identificator al declarației întors
                      de <strong>mysqli_stmt_init()</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>mysqli_prepare()</strong>


id: mysqli_stmt::result_metadata
type: function
doc:
<comment>Description:</comment>
  Returns result set metadata from a prepared statement
  
  Stil obiect-orientat
  
  Stil procedural
  
  If a statement passed to <strong>mysqli_prepare()</strong> is one that produces a result set,
  <strong>mysqli_stmt_result_metadata()</strong> returns the result object that can be used to process the meta
  information such as total number of fields and individual field information.
  
  This result set pointer can be passed as an argument to any of the field-based functions that
  process result set metadata, such as:
  <strong>mysqli_num_fields()</strong><strong>mysqli_fetch_field()</strong><strong>mysqli_fetch_field_direct()</strong><strong>mysqli_fetch_fields()</strong><strong>mysqli_field_count()</strong><strong>mysqli_field_seek()</strong><strong>mysqli_field_tell()</strong><strong>mysqli_free_result()</strong>
  
  <strong>mysqli_num_fields()</strong>
  
  <strong>mysqli_fetch_field()</strong>
  
  <strong>mysqli_fetch_field_direct()</strong>
  
  <strong>mysqli_fetch_fields()</strong>
  
  <strong>mysqli_field_count()</strong>
  
  <strong>mysqli_field_seek()</strong>
  
  <strong>mysqli_field_tell()</strong>
  
  <strong>mysqli_free_result()</strong>
  
  The result set structure should be freed when you are done with it, which you can do by passing it
  to <strong>mysqli_free_result()</strong>
  
  The result set returned by <strong>mysqli_stmt_result_metadata()</strong> contains only metadata. It does not
  contain any row results. The rows are obtained by using the statement handle with
  <strong>mysqli_stmt_fetch()</strong>.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt</strong>  Numai stilul procedural: Un identificator al declarației întors
                      de <strong>mysqli_stmt_init()</strong>.

<comment>Return:</comment>
  <info>mysqli_result</info>  Returns a result object or <info>false</info> if an error occurred.

<comment>See Also:</comment>
   * <strong>mysqli_prepare()</strong>
   * <strong>mysqli_free_result()</strong>


id: mysqli_stmt::send_long_data
type: function
doc:
<comment>Description:</comment>
  Send data in blocks
  
  Stil obiect-orientat
  
  Stil procedural
  
  Allows to send parameter data to the server in pieces (or chunks), e.g. if the size of a blob
  exceeds the size of <return>max_allowed_packet</return>. This function can be called multiple times to send the
  parts of a character or binary data value for a column, which must be one of the TEXT or BLOB
  datatypes.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt    </strong>  Numai stilul procedural: Un identificator al declarației întors
                          de <strong>mysqli_stmt_init()</strong>.
  <info>int        </info>  <strong>$param_nr</strong>  Indicates which parameter to associate the data with. Parameters are
                          numbered beginning with 0.
  <info>string     </info>  <strong>$data    </strong>  A string containing data to be sent.

<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>mysqli_prepare()</strong>
   * <strong>mysqli_stmt_bind_param()</strong>


id: mysqli_stmt::store_result
type: function
doc:
<comment>Description:</comment>
  Transfers a result set from a prepared statement
  
  Stil obiect-orientat
  
  Stil procedural
  
  You must call <strong>mysqli_stmt_store_result()</strong> for every query that successfully produces a result set
  (<return>SELECT, SHOW, DESCRIBE, EXPLAIN</return>), if and only if you want to buffer the complete result set by
  the client, so that the subsequent <strong>mysqli_stmt_fetch()</strong> call returns buffered data.
  
  It is unnecessary to call <strong>mysqli_stmt_store_result()</strong> for other queries, but if you do, it will not
  harm or cause any notable performance loss in all cases. You can detect whether the query produced
  a result set by checking if <strong>mysqli_stmt_result_metadata()</strong> returns <info>false</info>.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt</strong>  Numai stilul procedural: Un identificator al declarației întors
                      de <strong>mysqli_stmt_init()</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>mysqli_prepare()</strong>
   * <strong>mysqli_stmt_result_metadata()</strong>
   * <strong>mysqli_stmt_fetch()</strong>


id: mysqli_stmt_affected_rows
type: function
doc:
<comment>Description:</comment>
  Returns the total number of rows changed, deleted, or
    inserted by the last executed statement
    
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns the number of rows affected by <return>INSERT</return>, <return>UPDATE</return>, or <return>DELETE</return> query.
  
  This function only works with queries which update a table. In order to get the number of rows
  from a SELECT query, use  <strong>mysqli_stmt_num_rows()</strong> instead.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt</strong>  Numai stilul procedural: Un identificator al declarației întors
                      de <strong>mysqli_stmt_init()</strong>.

<comment>Return:</comment>
  <info>int</info>  An integer greater than zero indicates the number of rows affected or retrieved. Zero
       indicates that no records where updated for an UPDATE/DELETE statement, no rows matched the
       WHERE clause in the query or that no query has yet been executed. -1 indicates that the query
       has returned an error. NULL indicates an invalid argument was supplied to the function.
       
       If the number of affected rows is greater than maximal PHP int value, the number of affected
       rows will be returned as a string value.

<comment>See Also:</comment>
   * <strong>mysqli_stmt_num_rows()</strong>
   * <strong>mysqli_prepare()</strong>


id: mysqli_stmt_errno
type: function
doc:
<comment>Description:</comment>
  Returns the error code for the most recent statement call
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns the error code for the most recently invoked statement function that can succeed or fail.
  
  Client error message numbers are listed in the MySQL errmsg.h header file, server error message
  numbers are listed in mysqld_error.h. In the MySQL source distribution you can find a complete
  list of error messages and error numbers in the file  Docs/mysqld_error.txt.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt</strong>  Numai stilul procedural: Un identificator al declarației întors
                      de <strong>mysqli_stmt_init()</strong>.

<comment>Return:</comment>
  <info>int</info>  An error code value. Zero means no error occurred.

<comment>See Also:</comment>
   * <strong>mysqli_stmt_error()</strong>
   * <strong>mysqli_stmt_sqlstate()</strong>


id: mysqli_stmt_error
type: function
doc:
<comment>Description:</comment>
  Returns a string description for last statement error
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns a string containing the error message for the most recently invoked statement function
  that can succeed or fail.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt</strong>  Numai stilul procedural: Un identificator al declarației întors
                      de <strong>mysqli_stmt_init()</strong>.

<comment>Return:</comment>
  <info>string</info>  A string that describes the error. An empty string if no error occurred.

<comment>See Also:</comment>
   * <strong>mysqli_stmt_errno()</strong>
   * <strong>mysqli_stmt_sqlstate()</strong>


id: mysqli_stmt_error_list
type: function
doc:
<comment>Description:</comment>
  Returns a list of errors from the last statement executed
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns an array of errors for the most recently invoked statement function that can succeed or
  fail.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt</strong>  Numai stilul procedural: Un identificator al declarației întors
                      de <strong>mysqli_stmt_init()</strong>.

<comment>Return:</comment>
  <info>array</info>  A list of errors, each as an associative <info>array</info> containing the errno, error, and sqlstate.

<comment>See Also:</comment>
   * <strong>mysqli_stmt_error()</strong>
   * <strong>mysqli_stmt_errno()</strong>
   * <strong>mysqli_stmt_sqlstate()</strong>


id: mysqli_stmt_field_count
type: function
doc:
<comment>Description:</comment>
  Returns the number of columns in the given statement
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns the number of columns in the prepared statement.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt</strong>  Numai stilul procedural: Un identificator al declarației întors
                      de <strong>mysqli_stmt_init()</strong>.

<comment>Return:</comment>
  <info>int</info>  Returns an integer representing the number of columns.

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


id: mysqli_stmt_insert_id
type: function
doc:
<comment>Description:</comment>
  Get the ID generated from the previous INSERT operation
  
  Stil obiect-orientat
  
  Stil procedural
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.

<comment>Return:</comment>
  <info>mixed</info>  


id: mysqli_stmt_param_count
type: function
doc:
<comment>Description:</comment>
  Returns the number of parameters for the given statement
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns the number of parameter markers present in the prepared statement.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt</strong>  Numai stilul procedural: Un identificator al declarației întors
                      de <strong>mysqli_stmt_init()</strong>.

<comment>Return:</comment>
  <info>int</info>  Returns an integer representing the number of parameters.

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


id: mysqli_stmt_sqlstate
type: function
doc:
<comment>Description:</comment>
  Returns SQLSTATE error from previous statement operation
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns a string containing the SQLSTATE error code for the most recently invoked prepared
  statement function that can succeed or fail. The error code consists of five characters. <return>'00000'</return>
  means no error. The values are specified by ANSI SQL and ODBC. For a list of possible values, see
  http://dev.mysql.com/doc/mysql/en/error-handling.html.

<comment>Param:</comment>
  <info>mysqli_stmt</info>  <strong>$stmt</strong>  Numai stilul procedural: Un identificator al declarației întors
                      de <strong>mysqli_stmt_init()</strong>.

<comment>Return:</comment>
  <info>string</info>  Returns a string containing the SQLSTATE error code for the last error. The error code
          consists of five characters. <return>'00000'</return> means no error.

<comment>See Also:</comment>
   * <strong>mysqli_stmt_errno()</strong>
   * <strong>mysqli_stmt_error()</strong>


id: mysqli_thread_id
type: function
doc:
<comment>Description:</comment>
  Returns the thread ID for the current connection
  
  Stil obiect-orientat
  
  Stil procedural
  
  The <strong>mysqli_thread_id()</strong> function returns the thread ID for the current connection which can then be
  killed using the <strong>mysqli_kill()</strong> function. If the connection is lost and you reconnect with
  <strong>mysqli_ping()</strong>, the thread ID will be other. Therefore you should get the thread ID only when you
  need it.
  
  The thread ID is assigned on a connection-by-connection basis. Hence, if the connection is broken
  and then re-established a new thread ID will be assigned.
  
  To kill a running query you can use the SQL command  <return>KILL QUERY processid</return>.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>int</info>  Returns the Thread ID for the current connection.

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


id: mysqli_warning::next
type: function
doc:
<comment>Description:</comment>
  Fetch next warning
  
  Change warning information to the next warning if possible.
  
  Once the warning has been set to the next warning, new values of properties <return>message</return>, <return>sqlstate</return> and
  <return>errno</return> of <class>mysqli_warning</class> are available.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if next warning was fetched successfully. If there are no more warnings, it
        will return <info>false</info>


id: mysqli_warning_count
type: function
doc:
<comment>Description:</comment>
  Returns the number of warnings from the last query for the given link
  
  Stil obiect-orientat
  
  Stil procedural
  
  Returns the number of warnings from the last query in the connection.
  
  For retrieving warning messages you can use the SQL command <return>SHOW WARNINGS [limit row_count]</return>.

<comment>Param:</comment>
  <info>mysqli</info>  <strong>$link</strong>  Numai stilul procedural: Un identificator al legăturii întors
                 de <strong>mysqli_connect()</strong> sau <strong>mysqli_init()</strong>

<comment>Return:</comment>
  <info>int</info>  Number of warnings or zero if there are no warnings.

<comment>See Also:</comment>
   * <strong>mysqli_errno()</strong>
   * <strong>mysqli_error()</strong>
   * <strong>mysqli_sqlstate()</strong>


id: mysqlnd_memcache_get_config
type: function
doc:
<comment>Description:</comment>
  Returns information about the plugin configuration
  
  This function returns an array of all mysqlnd_memcache related configuration  information that is
  attached to the MySQL connection. This includes MySQL, the  Memcache object provided via
  <strong>mysqlnd_memcache_set()</strong>, and the table mapping configuration that was automatically collected from
  the MySQL Server.

<comment>Param:</comment>
  <info>mixed</info>  <strong>$connection</strong>  A handle to a MySQL Server using one of the MySQL API extensions for PHP,
                      which are PDO_MYSQL, mysqli or ext/mysql.

<comment>Return:</comment>
  <info>array</info>  An array of mysqlnd_memcache configuration information on success, otherwise <info>false</info>.
         
         The returned array has these elements:
         
         <strong>mysqlnd_memcache_get_config()</strong> array structureArray KeyDescriptionmemcached Instance of
         Memcached associated to this MySQL connection by mysqlnd_memcache_set. You can use this to
         change settings of the memcache connection, or directly by querying the server on this
         connection. pattern The PCRE regular expression used to match the SQL query sent to the
         server. Queries matching this pattern will be further analyzed to decide whether the query
         can be intercepted and sent via the memcache interface or whether the query is sent using
         the general MySQL protocol to the server. The pattern is either the default pattern
         (<return>MYSQLND_MEMCACHE_DEFAULT_REGEXP</return>) or it is set via <strong>mysqlnd_memcache_set()</strong>. mappings An
         associative array with a list of all configured containers as they were discovered by this
         plugin. The key for these elements is the name of the container in the MySQL configuration.
         The value is described below. The contents of this field is created by querying the MySQL
         Server during association to MySQL and a memcache connection using mysqlnd_memcache_set.
         mapping_queryAn SQL query used during mysqlnd_memcache_set to identify the available
         containers and mappings. The result of that  query is provided in the mappings element.
         Mapping entry structureArray KeyDescriptionprefix A prefix used while accessing data via
         memcache. With the MySQL InnoDB  Memcache Deamon plugin, this usually begins with @@ and
         ends with a configurable separator. This prefix is placed in front of the key value while
         using the memcache protocol. schema_name Name of the schema (database) which contains the
         table being accessed. table_name Name of the table which contains the data accessible via
         memcache protocol. id_field_name Name of the database field (column) with the id used as
         key when accessing the table via memcache. Often this is the database field having a
         primary key. separator The separator used to split the different field values. This is
         needed as memcache only provides access to a single value while MySQL can map multiple
         columns to this value.  The separator, which can be set in the MySQL Server configuration,
         should not be part of any value retrieved via memcache because proper mapping can't be
         guaranteed.  fields An array with the name of all fields available for this mapping.
         
         The separator, which can be set in the MySQL Server configuration, should not be part of
         any value retrieved via memcache because proper mapping can't be guaranteed.

<comment>See Also:</comment>
   * mysqlnd_memcache_set


id: mysqlnd_memcache_set
type: function
doc:
<comment>Description:</comment>
  Associate a MySQL connection with a Memcache connection
  
  Associate <strong>$mysql_connection</strong> with <strong>$memcache_connection</strong> using <strong>$pattern</strong> as a PCRE regular expression,
  and <strong>$callback</strong> as a notification callback or to unset the association of <strong>$mysql_connection</strong>.
  
  While associating a MySQL connection with a Memcache connection, this function will query the
  MySQL Server for its configuration. It will automatically detect whether the server is configured
  to use the InnoDB Memcache Daemon Plugin or MySQL Cluster NDB Memcache support. It will also query
  the server to automatically identify exported tables and other configuration options. The results
  of this automatic configuration can be retrieved using <strong>mysqlnd_memcache_get_config()</strong>.

<comment>Param:</comment>
  <info>mixed    </info>  <strong>$mysql_connection   </strong>  A handle to a MySQL Server using one of the MySQL API extensions
                                   for PHP, which are PDO_MYSQL, mysqli or ext/mysql.
  <info>Memcached</info>  <strong>$memcache_connection</strong>  A Memcached instance with a  connection to the MySQL Memcache
                                   Daemon plugin. If this parameter is omitted, then
                                   <strong>$mysql_connection</strong> will be unassociated from any memcache
                                   connection. And if a previous association exists, then it will be
                                   replaced.
  <info>string   </info>  <strong>$pattern            </strong>  A regular expression in Perl Compatible Regular Expression syntax
                                   used to identify potential Memcache-queries. The query should
                                   have three sub patterns. The first subpattern contains the
                                   requested field list, the second the name of the ID column from
                                   the query and the third the requested value. If this parameter is
                                   omitted or os set to <info>null</info>, then a default pattern will be used.
  <info>callable </info>  <strong>$callback           </strong>  A callback which will be used whenever a query is being sent to
                                   MySQL. The callback will receive a single <info>bool</info> parameter telling
                                   if a query was sent via Memcache.

<comment>Return:</comment>
  <info>bool</info>  <info>true</info> if the association or disassociation is successful, otherwise <info>false</info> if there is an
        error.

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


id: mysqlnd_ms_dump_servers
type: function
doc:
<comment>Description:</comment>
  Returns a list of currently configured servers
  
  Returns a list of currently configured servers.

<comment>Param:</comment>
  <info>mixed</info>  <strong>$connection</strong>  A MySQL connection handle obtained from any of the connect functions of the
                      mysqli, mysql or PDO_MYSQL extensions.

<comment>Return:</comment>
  <info>array</info>  <info>false</info> on error. Otherwise, returns an array with two entries <return>masters</return> and <return>slaves</return> each of
         which contains an array listing all corresponding servers.
         
         The function can be used to check and debug the list of servers currently used by the
         plugin. It is mostly useful when the list of servers changes at runtime, for example, when
         using MySQL Fabric.
         
         <return>masters</return> and <return>slaves</return> server entries
         
         Server entry name from config, if appliciable. NULL if no configuration name is available.
         
         Host name of the server.
         
         Database user used to authenticate against the server.
         
         TCP/IP port of the server.
         
         Unix domain socket of the server.


id: mysqlnd_ms_fabric_select_global
type: function
doc:
<comment>Description:</comment>
  Switch to global sharding server for a given table
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  MySQL Fabric related.
  
  Switch the connection to the nodes handling global sharding queries for the given table name.

<comment>Param:</comment>
  <info>mixed</info>  <strong>$connection</strong>  A MySQL connection handle obtained from any of the connect functions of the
                      mysqli, mysql or PDO_MYSQL extensions.
  <info>mixed</info>  <strong>$table_name</strong>  The table name to ask Fabric about.

<comment>Return:</comment>
  <info>array</info>  <info>false</info> on error. Otherwise, <info>true</info>


id: mysqlnd_ms_fabric_select_shard
type: function
doc:
<comment>Description:</comment>
  Switch to shard
  
  Această funcție nu este documentată în prezent; este disponibilă numai
  lista sa de argumente.
  
  MySQL Fabric related.
  
  Switch the connection to the shards responsible for the given table name and shard key.

<comment>Param:</comment>
  <info>mixed</info>  <strong>$connection</strong>  A MySQL connection handle obtained from any of the connect functions of the
                      mysqli, mysql or PDO_MYSQL extensions.
  <info>mixed</info>  <strong>$table_name</strong>  The table name to ask Fabric about.
  <info>mixed</info>  <strong>$shard_key </strong>  The shard key to ask Fabric about.

<comment>Return:</comment>
  <info>array</info>  <info>false</info> on error. Otherwise, <info>true</info>


id: mysqlnd_ms_get_last_gtid
type: function
doc:
<comment>Description:</comment>
  Returns the latest global transaction ID
  
  Returns a global transaction identifier which belongs to a write operation no older than the last
  write performed by the client. It is not guaranteed that the global transaction identifier is
  identical to that one created for the last write transaction performed by the client.

<comment>Param:</comment>
  <info>mixed</info>  <strong>$connection</strong>  A PECL/mysqlnd_ms connection handle to a MySQL server of the type PDO_MYSQL,
                      mysqli&gt; or ext/mysql. The connection handle is obtained when opening a
                      connection with a host name that matches a mysqlnd_ms configuration file entry
                      using any of the above three MySQL driver extensions.

<comment>Return:</comment>
  <info>string</info>  Returns a global transaction ID (GTID) on success. Otherwise, returns <info>false</info>.
          
          The function <strong>mysqlnd_ms_get_last_gtid()</strong> returns the GTID obtained when executing the SQL
          statement from the <return>fetch_last_gtid</return> entry of the <return>global_transaction_id_injection</return> section
          from the plugins configuration file.
          
          The function may be called after the GTID has been incremented.

<comment>See Also:</comment>
   * Global Transaction IDs


id: mysqlnd_ms_get_last_used_connection
type: function
doc:
<comment>Description:</comment>
  Returns an array which describes the last used connection
  
  Returns an array which describes the last used connection from the plugins connection pool
  currently pointed to by the user connection handle. If using the plugin, a user connection handle
  represents a pool of database connections. It is not possible to tell from the user connection
  handles properties to which database server from the pool the user connection handle points.
  
  The function can be used to debug or monitor PECL mysqlnd_ms.

<comment>Param:</comment>
  <info>mixed</info>  <strong>$connection</strong>  A MySQL connection handle obtained from any of the connect functions of the
                      mysqli, mysql or PDO_MYSQL extensions.

<comment>Return:</comment>
  <info>array</info>  <info>false</info> on error. Otherwise, an array which describes the connection used to execute the last
         statement on.
         
         Array which describes the connection.


id: mysqlnd_ms_get_stats
type: function
doc:
<comment>Description:</comment>
  Returns query distribution and connection statistics
  
  Returns an array of statistics collected by the replication and load balancing plugin.
  
  The PHP configuration setting <return>mysqlnd_ms.collect_statistics</return> controls the collection of statistics.
  The collection of statistics is disabled by default for performance reasons.
  
  The scope of the statistics is the <return>PHP</return> process. Depending on your deployment model a <return>PHP</return> process
  may handle one or multiple requests.
  
  Statistics are aggregated for all connections and all storage handler. It is not possible to tell
  how much queries originating from <return>mysqli</return>, <return>PDO_MySQL</return> or <return>mysql</return> API calls have contributed to the
  aggregated data values.

<comment>Return:</comment>
  <info>array</info>  Returns <info>null</info> if the PHP configuration directive <return>mysqlnd_ms.enable</return> has disabled the plugin.
         Otherwise, returns array of statistics.
         
         Array of statistics
         
         The semantics of this statistic has changed between 1.0.1 - 1.1.0.
         
         The meaning for version 1.0.1 is as follows. Number of statements considered as read-only
         by the built-in query analyzer. Neither statements which begin with a SQL hint to force use
         of slave nor statements directed to a slave by an user-defined callback are included. The
         total number of statements sent to the slaves is <return>use_slave</return> + <return>use_slave_sql_hint</return> +
         <return>use_slave_callback</return>.
         
         PECL/mysqlnd_ms 1.1.0 introduces a new concept of chained filters. The statistics is now
         set by the internal load balancing filter. With version 1.1.0 the load balancing filter is
         always the last in the filter chain, if used. In future versions a load balancing filter
         may be followed by other filters causing another change in the meaning of the statistic.
         If, in the future, a load balancing filter is followed by another filter it is no longer
         guaranteed that the statement, which increments <return>use_slave</return>, will be executed on the slaves.
         
         The meaning for version 1.1.0 is as follows. Number of statements sent to the slaves.
         Statements directed to a slave by the user filter (an user-defined callback) are not
         included. The latter are counted by <return>use_slave_callback</return>.
         
         The semantics of this statistic has changed between 1.0.1 - 1.1.0.
         
         The meaning for version 1.0.1 is as follows. Number of statements not considered as
         read-only by the built-in query analyzer. Neither statements which begin with a SQL hint to
         force use of master nor statements directed to a master by an user-defined callback are
         included. The total number of statements sent to the master is <return>use_master</return> +
         <return>use_master_sql_hint</return> + <return>use_master_callback</return>.
         
         PECL/mysqlnd_ms 1.1.0 introduces a new concept of chained filters. The statictics is now
         set by the internal load balancing filter. With version 1.1.0 the load balancing filter is
         always the last in the filter chain, if used. In future versions a load balancing filter
         may be followed by other filters causing another change in the meaning of the statistic.
         If, in the future, a load balancing filter is followed by another filter it is no longer
         guaranteed that the statement, which increments <return>use_master</return>, will be executed on the slaves.
         
         The meaning for version 1.1.0 is as follows. Number of statements sent to the masters.
         Statements directed to a master by the user filter (an user-defined callback) are not
         included. The latter are counted by <return>use_master_callback</return>.

<comment>See Also:</comment>
   * Runtime configuration
   * mysqlnd_ms.collect_statistics
   * mysqlnd_ms.enable
   * Monitoring


id: mysqlnd_ms_match_wild
type: function
doc:
<comment>Description:</comment>
  Finds whether a table name matches a wildcard pattern or not
  
  Finds whether a table name matches a wildcard pattern or not.
  
  This function is not of much practical relevance with PECL mysqlnd_ms 1.1.0 because the plugin
  does not support MySQL replication table filtering yet.

<comment>Param:</comment>
  <info>string</info>  <strong>$table_name</strong>  The table name to check if it is matched by the wildcard.
  <info>string</info>  <strong>$wildcard  </strong>  The wildcard pattern to check against the table name. The wildcard pattern
                       supports the same placeholders as MySQL replication filters do.
                       
                       MySQL replication filters can be configured by using the MySQL Server
                       configuration options <return>--replicate-wild-do-table</return> and <return>--replicate-wild-do-db</return>.
                       Please, consult the MySQL Reference Manual to learn more about this MySQL
                       Server feature.
                       
                       The supported placeholders are: <return>%</return> - zero or more literals <return>_</return> - one literal 
                       
                       <return>%</return> - zero or more literals
                       
                       <return>_</return> - one literal
                       
                       Placeholders can be escaped using <return>\</return>.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> <return>table_name</return> is matched by <return>wildcard</return>. Otherwise, returns <info>false</info>


id: mysqlnd_ms_query_is_select
type: function
doc:
<comment>Description:</comment>
  Find whether to send the query to the master, the slave or the last used MySQL server
  
  Finds whether to send the query to the master, the slave or the last used MySQL server.
  
  The plugins built-in read/write split mechanism will be used to analyze the query string to make a
  recommendation where to send the query. The built-in read/write split mechanism is very basic and
  simple. The plugin will recommend sending all queries to the MySQL replication master server but
  those which begin with <return>SELECT</return>, or begin with a SQL hint which enforces sending the query to a
  slave server. Due to the basic but fast algorithm the plugin may propose to run some read-only
  statements such as <return>SHOW TABLES</return> on the replication master.

<comment>Param:</comment>
  <info>string</info>  <strong>$query</strong>  Query string to test.

<comment>Return:</comment>
  <info>int</info>  A return value of <info>MYSQLND_MS_QUERY_USE_MASTER</info> indicates that the query should be send to the
       MySQL replication master server. The function returns a value of <info>MYSQLND_MS_QUERY_USE_SLAVE</info>
       if the query can be run on a slave because it is considered read-only. A value of
       <info>MYSQLND_MS_QUERY_USE_LAST_USED</info> is returned to recommend running the query on the last used
       server. This can either be a MySQL replication master server or a MySQL replication slave
       server.
       
       If read write splitting has been disabled by setting <return>mysqlnd_ms.disable_rw_split</return>, the
       function will always return <info>MYSQLND_MS_QUERY_USE_MASTER</info> or <info>MYSQLND_MS_QUERY_USE_LAST_USED</info>.

<comment>See Also:</comment>
   * Predefined Constants
   * <return>user</return> filter
    
   * Runtime configuration
   * mysqlnd_ms.disable_rw_split
   * mysqlnd_ms.enable


id: mysqlnd_ms_set_qos
type: function
doc:
<comment>Description:</comment>
  Sets the quality of service needed from the cluster
  
  Sets the quality of service needed from the cluster. A database cluster delivers a certain quality
  of service to the user depending on its architecture. A major aspect of the quality of service is
  the consistency level the cluster can offer. An asynchronous MySQL replication cluster defaults to
  eventual consistency for slave reads: a slave may serve stale data, current data, or it may have
  not the requested data at all, because it is not synchronous to the master. In a MySQL replication
  cluster, only master accesses can give strong consistency, which promises that all clients see
  each others changes.
  
  PECL/mysqlnd_ms hides the complexity of choosing appropriate nodes to achieve a certain level of
  service from the cluster. The "Quality of Service" filter implements the necessary logic. The
  filter can either be configured in the plugins configuration file, or at runtime using
  <strong>mysqlnd_ms_set_qos()</strong>.
  
  Similar results can be achieved with PECL mysqlnd_ms
  \< 1.2.0, if using SQL hints to force the use of a certain type of node or using the <return>master_on_write</return>
  plugin configuration option. The first requires more code and causes more work on the application
  side. The latter is less refined than using the quality of service filter. Settings made through
  the function call can be reversed, as shown in the example below. The example temporarily switches
  to a higher service level (session consistency, read your writes) and returns back to the clusters
  default after it has performed all operations that require the better service. This way, read load
  on the master can be minimized compared to using <return>master_on_write</return>, which would continue using the
  master after the first write.
  
  Since 1.5.0 calls will fail when done in the middle of a transaction if transaction stickiness is
  enabled and transaction boundaries have been detected. properly.

<comment>Param:</comment>
  <info>mixed</info>  <strong>$connection          </strong>  A PECL/mysqlnd_ms connection handle to a MySQL server of the type
                                PDO_MYSQL, mysqli or ext/mysql for which a service level is to be
                                set. The connection handle is obtained when opening a connection
                                with a host name that matches a mysqlnd_ms configuration file entry
                                using any of the above three MySQL driver extensions.
  <info>int  </info>  <strong>$service_level       </strong>  The requested service level: <info>MYSQLND_MS_QOS_CONSISTENCY_EVENTUAL</info>,
                                <info>MYSQLND_MS_QOS_CONSISTENCY_SESSION</info> or
                                <info>MYSQLND_MS_QOS_CONSISTENCY_STRONG</info>.
  <info>int  </info>  <strong>$service_level_option</strong>  An option to parameterize the requested service level. The option
                                can either be <info>MYSQLND_MS_QOS_OPTION_GTID</info> or
                                <info>MYSQLND_MS_QOS_OPTION_AGE</info>.
                                
                                The option <info>MYSQLND_MS_QOS_OPTION_GTID</info> can be used to refine the
                                service level <info>MYSQLND_MS_QOS_CONSISTENCY_SESSION</info>. It must be
                                combined with a fourth function parameter, the <strong>$option_value</strong>. The
                                <strong>$option_value</strong> shall be a global transaction ID obtained from
                                <strong>mysqlnd_ms_get_last_gtid()</strong>. If set, the plugin considers both master
                                servers and asynchronous slaves for session consistency (read your
                                writes). Otherwise, only masters are used to achieve session
                                consistency. A slave is considered up-to-date and checked if it has
                                already replicated the global transaction ID from <strong>$option_value</strong>.
                                Please note, searching appropriate slaves is an expensive and slow
                                operation. Use the feature sparsely, if the master cannot handle the
                                read load alone.
                                
                                The <info>MYSQLND_MS_QOS_OPTION_AGE</info> option can be combined with the
                                <info>MYSQLND_MS_QOS_CONSISTENCY_EVENTUAL</info> service level, to filter out
                                asynchronous slaves that lag more seconds behind the master than
                                <strong>$option_value</strong>. If set, the plugin will only consider slaves for
                                reading if <return>SHOW SLAVE STATUS</return> reports <return>Slave_IO_Running=Yes</return>,
                                <return>Slave_SQL_Running=Yes</return> and <return>Seconds_Behind_Master \<= option_value</return>. Please note, searching appropriate slaves is an expensive and slow operation. Use the feature sparsely in version 1.2.0. Future versions may improve the algorithm used to identify candidates. Please, see the MySQL reference manual about the precision, accuracy and limitations of the MySQL administrative command <return>SHOW SLAVE STATUS</return>.
  <info>mixed</info>  <strong>$option_value        </strong>  Parameter value for the service level option. See also the
                                <strong>$service_level_option</strong> parameter.

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if the connections service level has been switched to the requested. Otherwise,
        returns <info>false</info>

<comment>See Also:</comment>
   * <strong>mysqlnd_ms_get_last_gtid()</strong>
   * Service level and consistency concept
   * Filter concept


id: mysqlnd_ms_set_user_pick_server
type: function
doc:
<comment>Description:</comment>
  Sets a callback for user-defined read/write splitting
  
  Sets a callback for user-defined read/write splitting. The plugin will call the callback only if
  <return>pick[]=user</return> is the default rule for server picking in the relevant section of the plugins
  configuration file.
  
  The plugins built-in read/write query split mechanism decisions can be overwritten in two ways.
  The easiest way is to prepend the query string with the SQL hints <info>MYSQLND_MS_MASTER_SWITCH</info>,
  <info>MYSQLND_MS_SLAVE_SWITCH</info> or <info>MYSQLND_MS_LAST_USED_SWITCH</info>. Using SQL hints one can control, for
  example, whether a query shall be send to the MySQL replication master server or one of the slave
  servers. By help of SQL hints it is not possible to pick a certain slave server for query
  execution.
  
  Full control on server selection can be gained using a callback function. Use of a callback is
  recommended to expert users only because the callback has to cover all cases otherwise handled by
  the plugin.
  
  The plugin will invoke the callback function for selecting a server from the lists of configured
  master and slave servers. The callback function inspects the query to run and picks a server for
  query execution by returning the hosts URI, as found in the master and slave list.
  
  If the lazy connections are enabled and the callback chooses a slave server for which no
  connection has been established so far and establishing the connection to the slave fails, the
  plugin will return an error upon the next action on the failed connection, for example, when
  running a query. It is the responsibility of the application developer to handle the error. For
  example, the application can re-run the query to trigger a new server selection and callback
  invocation. If so, the callback must make sure to select a different slave, or check slave
  availability, before returning to the plugin to prevent an endless loop.

<comment>Param:</comment>
  <info>string</info>  <strong>$function</strong>  The function to be called. Class methods may also be invoked statically using
                     this function by passing <return>array($classname, $methodname)</return> to this parameter.
                     Additionally class methods of an object instance may be called by passing
                     <return>array($objectinstance, $methodname)</return> to this parameter.

<comment>Return:</comment>
  <info>bool</info>  Host to run the query on. The host URI is to be taken from the master and slave connection
        lists passed to the callback function. If callback returns a value neither found in the
        master nor in the slave connection lists the plugin will fallback to the second pick method
        configured via the <return>pick[]</return> setting in the plugin configuration file. If not second pick
        method is given, the plugin falls back to the build-in default pick method for server
        selection.

<comment>See Also:</comment>
   * <strong>mysqlnd_ms_query_is_select()</strong>
   * Filter concept
   * <return>user</return> filter
    


id: mysqlnd_ms_xa_begin
type: function
doc:
<comment>Description:</comment>
  Starts a distributed/XA transaction among MySQL servers
  
  Starts a XA transaction among MySQL servers. PECL/mysqlnd_ms acts as a transaction coordinator the
  distributed transaction.
  
  Once a global transaction has been started, the plugin injects appropriate <return>XA BEGIN</return> SQL statements
  on all MySQL servers used in the following. The global transaction is either ended by calling
  <strong>mysqlnd_ms_xa_commit()</strong>, <strong>mysqlnd_ms_xa_rollback()</strong> or by an implicit rollback in case of an error.
  
  During a global transaction, the plugin tracks all server switches, for example, when switching
  from one MySQL shard to another MySQL shard. Immediately before a query is run on a server that
  has not been participating in the global transaction yet, <return>XA BEGIN</return> is executed on the server. From
  a users perspective the injection happens during a call to a query execution function such as
  <strong>mysqli_query()</strong>. Should the injection fail an error is reported to the caller of the query
  execution function. The failing server does not become a participant in the global transaction.
  The user may retry executing a query on the server and hereby retry injecting <return>XA BEGIN</return>, abort the
  global transaction because not all required servers can participate, or ignore and continue the
  global without the failed server.
  
  Reasons to fail executing <return>XA BEGIN</return> include but are not limited to a server being unreachable or
  the server having an open, concurrent XA transaction using the same xid.
  
  Please note, global and local transactions are mutually exclusive. You cannot start a XA
  transaction when you have a local transaction open. The local transaction must be ended first. The
  plugin tries to detect this conflict as early as possible. It monitors API calls for controlling
  local transactions to learn about the current state. However, if using SQL statements for local
  transactions such as <return>BEGIN</return>, the plugin may not know the current state and the conflict is not
  detected before <return>XA BEGIN</return> is injected and executed.
  
  The use of other XA resources but MySQL servers is not supported by the function. To carry out a
  global transaction among, for example, a MySQL server and another vendors database system, you
  should issue the systems SQL commands yourself.
  
  The feature is currently under development. There may be issues and/or feature limitations. Do not
  use in production environments.

<comment>Param:</comment>
  <info>mixed </info>  <strong>$connection</strong>  A MySQL connection handle obtained from any of the connect functions of the
                       mysqli, mysql or PDO_MYSQL extensions.
  <info>string</info>  <strong>$gtrid     </strong>  Global transaction identifier (gtrid). The gtrid is a binary string up to 64
                       bytes long. Please note, depending on your character set settings, 64
                       characters may require more than 64 bytes to store.
                       
                       In accordance with the MySQL SQL syntax, XA transactions use identifiers made
                       of three parts. An xid consists of a global transaction identifier (gtrid), a
                       branch qualifier (bqual) and a format identifier (formatID). Only the global
                       transaction identifier can and needs to be set.
                       
                       The branch qualifier and format identifier are set automatically. The details
                       should be considered implementation dependent, which may change without prior
                       notice. In version 1.6 the branch qualifier is consecutive number which is
                       incremented whenever a participant joins the global transaction.
  <info>int   </info>  <strong>$timeout   </strong>  Timeout in seconds. The default value is 60 seconds.
                       
                       The timeout is a hint to the garbage collection. If a transaction is recorded
                       to take longer than expected, the garbage collection begins checking the
                       transactions status.
                       
                       Setting a low value may make the garbage collection check the progress too
                       often. Please note, checking the status of a global transaction may involve
                       connecting to all recorded participants and possibly issuing queries on the
                       servers.

<comment>Return:</comment>
  <info>int</info>  Returns <info>true</info> if there is no open local or global transaction and a new global transaction can
       be started. Otherwise, returns <info>false</info>

<comment>See Also:</comment>
   * Quickstart XA/Distributed transactions
   * Runtime configuration
   * <strong>mysqlnd_ms_get_stats()</strong>


id: mysqlnd_ms_xa_commit
type: function
doc:
<comment>Description:</comment>
  Commits a distributed/XA transaction among MySQL servers
  
  Commits a global transaction among MySQL servers started by <strong>mysqlnd_ms_xa_begin()</strong>.
  
  If any of the global transaction participants fails to commit an implicit rollback is performed.
  It may happen that not all cases can be handled during the rollback. For example, no attempts will
  be made to reconnect to a participant after the connection to the participant has been lost.
  Solving cases that cannot easily be rolled back is left to the garbage collection.
  
  The feature is currently under development. There may be issues and/or feature limitations. Do not
  use in production environments.

<comment>Param:</comment>
  <info>mixed </info>  <strong>$connection</strong>  A MySQL connection handle obtained from any of the connect functions of the
                       mysqli, mysql or PDO_MYSQL extensions.
  <info>string</info>  <strong>$gtrid     </strong>  Global transaction identifier (gtrid).

<comment>Return:</comment>
  <info>bool</info>  Returns <info>true</info> if the global transaction has been committed. Otherwise, returns <info>false</info>

<comment>See Also:</comment>
   * Quickstart XA/Distributed transactions
   * Runtime configuration
   * <strong>mysqlnd_ms_get_stats()</strong>


id: mysqlnd_ms_xa_gc
type: function
doc:
<comment>Description:</comment>
  Garbage collects unfinished XA transactions after severe errors
  
  Garbage collects unfinished XA transactions.
  
  The XA protocol is a blocking protocol. There exist cases when servers participating in a global
  transaction cannot make progress when the transaction coordinator crashes or disconnects. In such
  a case, the MySQL servers keep waiting for instructions to finish the XA transaction in question.
  Because transactions occupy resources, transactions should always be terminated properly.
  
  Garbage collection requires configuring a state store to track global transactions. Should a PHP
  client crash in the middle of a transaction and a new PHP client be started, then the built-in
  garbage collection can learn about the aborted global transaction and terminate it. If you do not
  configure a state store, the garbage collection cannot perform any cleanup tasks.
  
  The state store should be crash-safe and be highly available to survive its own crash. Currently,
  only MySQL is supported as a state store.
  
  Garbage collection can also be performed automatically in the background. See the plugin
  configuration directive <return>garbage_collection</return> for details.
  
  The feature is currently under development. There may be issues and/or feature limitations. Do not
  use in production environments.

<comment>Param:</comment>
  <info>mixed </info>  <strong>$connection        </strong>  A MySQL connection handle obtained from any of the connect functions
                               of the mysqli, mysql or PDO_MYSQL extensions.
  <info>string</info>  <strong>$gtrid             </strong>  Global transaction identifier (gtrid). If given, the garbage
                               collection considers the transaction only. Otherwise, the state store
                               is scanned for any unfinished transaction.
  <info>bool  </info>  <strong>$ignore_max_retries</strong>  Whether to ignore the plugin configuration <return>max_retries</return> setting. If
                               garbage collection continuously fails and the <return>max_retries</return> limit is
                               reached prior to finishing the failed global transaction, you can
                               attempt further runs prior to investigating the cause and solving the
                               issue manually by issuing appropriate SQL statements on the
                               participants. Setting the parameter has the same effect as
                               temporarily setting <return>max_retries = 0</return>.

<comment>Return:</comment>
  <info>int</info>  Returns <info>true</info> if garbage collection was successful. Otherwise, returns <info>false</info>

<comment>See Also:</comment>
   * Quickstart XA/Distributed transactions
   * Runtime configuration
   * State store configuration
   * <strong>mysqlnd_ms_get_stats()</strong>


id: mysqlnd_ms_xa_rollback
type: function
doc:
<comment>Description:</comment>
  Rolls back a distributed/XA transaction among MySQL servers
  
  Rolls back a global transaction among MySQL servers started by <strong>mysqlnd_ms_xa_begin()</strong>.
  
  If any of the global transaction participants fails to rollback the situation is left to be solved
  by the garbage collection.
  
  The feature is currently under development. There may be issues and/or feature limitations. Do not
  use in production environments.

<comment>Param:</comment>
  <info>mixed </info>  <strong>$connection</strong>  A MySQL connection handle obtained from any of the connect functions of the
                       mysqli, mysql or PDO_MYSQL extensions.
  <info>string</info>  <strong>$gtrid     </strong>  Global transaction identifier (gtrid).

<comment>Return:</comment>
  <info>int</info>  Returns <info>true</info> if the global transaction has been rolled back. Otherwise, returns <info>false</info>

<comment>See Also:</comment>
   * Quickstart XA/Distributed transactions
   * Runtime configuration
   * <strong>mysqlnd_ms_get_stats()</strong>


