New Parameters

Some functions were given new, optional, parameters in PHP 5.2.x:

PHP Core:

curl:

datetime

  • date() - added "u" (milliseconds) format character in PHP 5.2.2

imap:

mbstring:

  • mb_strrpos() - added offset
    Uyarı

    The offset parameter was put in the position the encoding parameter used to be. Backward compatibility has been provided by allowing encoding to be specified as the third parameter. Using this backward compatibility mode is not recommended because it will be removed in a future release of PHP.

ming:

openssl:

pgsql:

simplexml:

spl:

  • array iterator_to_array(Traversable it [, bool use_keys = true]) - added use_keys in PHP 5.2.1

xmlreader:

XMLWriter:

  • xmlwriter_write_element() - the content became optional in PHP 5.2.3
  • xmlwriter_write_element_ns() - the content became optional in PHP 5.2.3