Pro PHP- Patterns, Frameworks, Testing and More
CHAPTER 10 ■ SPL ITERATORS^155 ■Note If your PHP installation is from package management, you can still use the files in the exa ...
(^156) CHAPTER 10 ■ SPL ITERATORS ParentIterator The ParentIterator is an extended FilterIterator that can filter out nonparent ...
CHAPTER 10 ■ SPL ITERATORS^157 This iterator also provides a static compareIterators($lhs, $rhs, $identical=false) method that c ...
(^158) CHAPTER 10 ■ SPL ITERATORS RecursiveRegexIterator The RecursiveRegexIterator is the recursive form of the RegexIterator. ...
CHAPTER 10 ■ SPL ITERATORS^159 <book> <name>Other Book</name> </book> </library> The SimpleXMLIter ...
(^160) CHAPTER 10 ■ SPL ITERATORS To follow the examples in this section, you will need to create an .ini file like the one show ...
CHAPTER 10 ■ SPL ITERATORS^161 Just the Facts This chapter covers SPL iterators, which can be an elegant solution to complex pro ...
McArthur_819-9C10.fm Page 162 Friday, February 22, 2008 9:08 AM ...
163 ■ ■ ■ CHAPTER 11 SPL File and Directory Handling The SPL provides several classes and iterators that allow for object-orient ...
(^164) CHAPTER 11 ■ SPL FILE AND DIRECTORY HANDLING function getMTime() {} function getCTime() {} function getType() {} function ...
CHAPTER 11 ■ SPL FILE AND DIRECTORY HANDLING^165 array ( 'path' => '/path/to/file', 'filename' => 'filename.php', 'pathnam ...
(^166) CHAPTER 11 ■ SPL FILE AND DIRECTORY HANDLING These two functions have an effect on how the getFileInfo(), getPathInfo(), ...
CHAPTER 11 ■ SPL FILE AND DIRECTORY HANDLING^167 Listing 11-4. Using SplFileInfo and DirectoryIterator $pathName = '/path/to/ite ...
(^168) CHAPTER 11 ■ SPL FILE AND DIRECTORY HANDLING __construct’s flags parameter controls how the current and key values are re ...
CHAPTER 11 ■ SPL FILE AND DIRECTORY HANDLING^169 /path/to/php-src/ext/spl/examples/tree.php You can also call getPathname() on t ...
(^170) CHAPTER 11 ■ SPL FILE AND DIRECTORY HANDLING ■Note You can use a RecursiveFilterIterator for a custom file filter iterato ...
CHAPTER 11 ■ SPL FILE AND DIRECTORY HANDLING^171 Listing 11-10. Creating a Plug-in Directory $dir = '/path/to/plugins'; $dirit = ...
(^172) CHAPTER 11 ■ SPL FILE AND DIRECTORY HANDLING and an object-oriented approach as an alternative to the linear approach typ ...
CHAPTER 11 ■ SPL FILE AND DIRECTORY HANDLING^173 array ( 0 => 'Prime Minister', 1 => 'From', 2 => 'To', )array ( 0 => ...
(^174) CHAPTER 11 ■ SPL FILE AND DIRECTORY HANDLING } else { $this->fp = fopen($filename, $mode, $use_include_path); } if(!$t ...
«
5
6
7
8
9
10
11
12
13
14
»
Free download pdf