关闭的不一样------li---
关闭的不一样------ul---
关闭的不一样------li---
关闭的不一样------ul---
New Classes - PHP参考手册

New Classes

The following classes were introduced in PHP 5.2.0:

  • datetime
  • datetimezone
  • regexiterator - extends filteriterator; implements iterator, traversable, outeriterator constants: regexiterator::all_matches
  • regexiterator::get_match
  • regexiterator::match
  • regexiterator::replace
  • regexiterator::split
  • regexiterator::use_key
Properties:
  • public replacement
Methods:
  • regexiterator::__construct(iterator it, string regex [, int mode [, int flags [, int preg_flags]]])- create an regexiterator from another iterator and a regular expression
  • bool regexiterator::accept()- match(string)current()against regular expression
  • bool regexiterator::getflags()- returns current operation flags
  • bool regexiterator::getmode()- returns current operation mode
  • bool regexiterator::getpregflags()- returns current preg flags(if in use or null)
  • bool regexiterator::setflags(int new_flags)- set operation flags
  • bool regexiterator::setmode(int new_mode)- set new operation mode
  • bool regexiterator::setpregflags(int new_flags)- set preg flags
  • recursiveregexiterator constants: recursiveregexiterator::all_matches
  • recursiveregexiterator::get_match
  • recursiveregexiterator::match
  • recursiveregexiterator::replace
  • recursiveregexiterator::split
  • recursiveregexiterator::use_key
  • Methods:
    • recursiveregexiterator::__construct(recursiveiterator it, string regex [, int mode [, int flags [, int preg_flags]]])- create an recursiveregexiterator from another recursive iterator and a regular expression
    • recursiveregexiterator recursiveregexiterator::getchildren()- return the inner iterator's children contained in a recursiveregexiterator
    • bool recursiveregexiterator::haschildren()- check whether the inner iterator's current element has children