TOP
紅利積點抵現金,消費購書更貼心
PHP Iterators and Generators: Efficient Data Handling: Process Large Datasets and Optimize Memory Usage: Build Scalable and Memory-Efficient Applicati
滿額折

PHP Iterators and Generators: Efficient Data Handling: Process Large Datasets and Optimize Memory Usage: Build Scalable and Memory-Efficient Applicati

商品資訊

定價
:NT$ 672 元
無庫存,下單後進貨(到貨天數約30-45天)
下單可得紅利積點 :20 點
商品簡介

商品簡介

What You'll Learn in This Book
  • Grasp the fundamentals of iteration in PHP, from traditional for and foreach loops to the powerful Iterator Design Pattern, understanding why efficient iteration is crucial for performance and memory.
  • Leverage PHP's iterable pseudo-type, discovering what qualifies as iterable and how to use it effectively in your function signatures for more robust code.
  • Dive deep into the Standard PHP Library (SPL) iterators, learning how to use ArrayIterator, DirectoryIterator, and FilesystemIterator for common data and file system traversal.
  • Master advanced SPL iterators like SeekableIterator (for jumping to specific positions), RecursiveIterator (for hierarchical data), and OuterIterator (for decorating other iterators).
  • Apply practical SPL filtering and modification techniques using classes such as FilterIterator, CallbackFilterIterator, RegexIterator, LimitIterator, and CachingIterator to refine and control your iteration.
  • Combine and chain multiple iterators with AppendIterator and MultipleIterator to build sophisticated data processing pipelines.
  • Craft your own custom iterators by implementing the Iterator interface to traverse bespoke data structures, external APIs, or database results efficiently.
  • Understand when to use IteratorAggregate to simplify iteration for your collection classes, delegating the traversal logic to another iterator.
  • Unlock the power of PHP Generators, learning how the yield keyword enables memory-efficient, lazy evaluation for large datasets with significantly less boilerplate code.
  • Explore advanced generator features, including yielding keys and values, sending data into generators, throwing exceptions, and delegating iteration with yield from.
  • Apply iterators and generators to real-world scenarios, such as processing large files (CSV, XML), streaming database results, consuming paginated APIs, and building data transformation pipelines.
  • Gain insights into performance and memory optimization for different iteration techniques, learning how to benchmark and profile your code to choose the right tool for the job.
  • Discover how popular PHP frameworks and libraries utilize iterators and generators, and glimpse into the future of iteration in the PHP ecosystem.

購物須知

外文書商品之書封,為出版社提供之樣本。實際出貨商品,以出版社所提供之現有版本為主。部份書籍,因出版社供應狀況特殊,匯率將依實際狀況做調整。

無庫存之商品,在您完成訂單程序之後,將以空運的方式為你下單調貨。為了縮短等待的時間,建議您將外文書與其他商品分開下單,以獲得最快的取貨速度,平均調貨時間為1~2個月。

為了保護您的權益,「三民網路書店」提供會員七日商品鑑賞期(收到商品為起始日)。

若要辦理退貨,請在商品鑑賞期內寄回,且商品必須是全新狀態與完整包裝(商品、附件、發票、隨貨贈品等)否則恕不接受退貨。

定價:100 672
無庫存,下單後進貨
(到貨天數約30-45天)

暢銷榜

客服中心

收藏

會員專區