Special offers now — see discounted courses.
day
:
hour
:
min
:
sec
See special offers
Learning the Standard PHP Library

Learning the Standard PHP Library

3h 25mBeginner2014-10-22

Authors

David Powers

David Powers

Developing websites since 1994

Course details

The Standard PHP Library (SPL) is a collection of useful classes for traversing, filtering, and sorting data and objects. One of its main features is the iterator, which provide easy access to arrays, trees, and directory listings. In this course, David Powers reviews using these iterators to explore the file system, and combining iterators in order to edit and manage specific types of files. He'll show how to load XML and JSON data, convert arrays into nested lists, and work with data structures such as doubly linked lists, queues, and heaps. Start learning how to put SPL into practice, and extend the power of your PHP applications.

Learning objectives
Using SPL iterators
Inspecting directories
Working with text files
Exporting and extracting data
Filtering data
Converting between arrays and iterators
Combining and merging iterators
Creating a repeat sequence with InfiniteIterator
Working with data structures

Skills covered

PHPBack-End Web DevelopmentLearningWeb DevelopmentProgramming LanguagesOpen SourceSoftware Development

Concepts

0. Introduction

  • 01 - Welcome
  • 02 - What you should know before watching this course
  • 03 - Using the exercise files

1. Introducing the Standard PHP Library (SPL)

  • 04 - What is the Standard PHP Library
  • 05 - Introducing SPL iterators
  • 06 - Using SPL iterators

2. Exploring Files and Directories

  • 07 - Inspecting single directories with DirectoryIterator
  • 08 - Inspecting single directories with FilesystemIterator
  • 09 - Inspecting directories recursively with RecursiveDirectoryIterator
  • 10 - Getting information about files with SplFileInfo
  • 11 - Working on text files with SplFileObject
  • 12 - Using SplFileObject to convert a CSV to an array
  • 13 - Exporting data to a download file with SplTempFileObject

3. Filtering Values

  • 14 - Filtering a directory with GlobIterator
  • 15 - Using regular expressions to filter directories with RegexIterator
  • 16 - Extracting data from XML with RegexIterator and SimpleXML
  • 17 - Specifying a range of items with LimitIterator
  • 18 - Creating a custom filter with CallbackFilterIterator
  • 19 - Creating a recursive callback filter
  • 20 - Extending FilterIterator to create a reusable filter
  • 21 - Creating a custom filter with RecursiveFilterIterator
  • 22 - Overriding the RecursiveFilterIterator constructor
  • 23 - Using ParentIterator to find elements that have children

4. Array Iterators

  • 24 - Converting between arrays and iterators
  • 25 - Filtering values from JSON
  • 26 - Using multidimensional arrays with iterators
  • 27 - Extending RecursiveIteratorIterator to build nested lists

5. Combining and Merging Iterators

  • 28 - Combining iterators with AppendIterator
  • 29 - Merging values from different iterators with MultipleIterator

6. Other Iterators

  • 30 - Creating a repeat sequence with InfiniteIterator
  • 31 - Treating the final element differently with CachingIterator
  • 32 - Using RecursiveCachingIterator with multidimensional structures
  • 33 - Generating an ASCII graphic tree with RecursiveTreeIterator
  • 34 - NoRewindIterator and EmptyIterator

7. SPL Data Structures

  • 35 - Doubly linked lists, stacks, and queues
  • 36 - Sorting XML and JSON with SplDoublyLinkedList
  • 37 - Using SplStack and SplQueue
  • 38 - Understanding heaps
  • 39 - SplMinHeap and SplMaxHeap
  • 40 - Sorting XML and JSON with SplHeap
  • 41 - Finding important information with SplPriorityQueue
  • 42 - Keeping priority items in chronological order
  • 43 - Speeding up array access with SplFixedArray

Conclusion

  • 44 - Goodbye

About us

LyndaKade is a leading learning platform that helps people learn business, software, technology, and creative skills to achieve personal and professional goals.

Phone numberAparat ChannelTelegram SupportTelegram ChannelInstagram Page

All rights to this site belong to LyndaKade.

Terms of Service|Privacy Policy

نماد الکترونیک enamad در صورت اتصال با آی‌پی داخل کشور، نمایش داده خواهد شد.
logo-samandehi - لوگو ساماندهی
Zarinpal
Zibal