您的位置:寻梦网首页编程乐园PHP 编程PHP5中文手册
PHP5中文手册

New Functions

PHP 5.2.x introduced some new functions:

PHP Core:

Image:

mbstring:

  • mb_list_encodings_alias_names() - Returns an array of all supported entity encodings
  • mb_list_mime_names() - Returns an array or string of all supported mime names
  • mb_stripos() - Finds position of first occurrence of a string within another, case insensitive
  • mb_stristr() - Finds first occurrence of a string within another, case insensitive
  • mb_strrchr() - Finds the last occurrence of a character in a string within another
  • mb_strrichr() - Finds the last occurrence of a character in a string within another, case insensitive
  • mb_strripos() - Finds position of last occurrence of a string within another, case insensitive
  • mb_strstr() - Finds first occurrence of a string within another

ming (As of PHP 5.2.1):

  • void ming_setSWFCompression(int num) - Sets output compression
  • void swfmovie::namedanchor(string name) - Creates anchor
  • void swfmovie::protect([string pasword]) - Protects

openssl:

spl:

  • spl_object_hash() - Return hash id for given object
  • int iterator_apply(Traversable it, mixed function [, mixed params]) - Calls a function for every element in an iterator

pcre:

pgsql:

  • pg_field_table() - Returns the name of the table field belongs to, or table's oid if oid_only is true

posix:

gmp:

xmlwriter: