SPL is a collection of PHP interfaces and classes that are meant to solve standard problems.
I'm trying to understand STD_PROP_LIST constant in the documentation but so far i didn´t understand it, and …
php spl arrayobjectI'm working on code to manage a collection of unique objects. The first prototype of this code utilises an associative …
php oop associative-array splI'm playing around with the SPL autoload functionality and seem to be missing something important as I am currently unable …
php spl spl-autoloaderI'm used to Java where I have HashSets, ArrayLists and other Collections. But I'm workting on a PHP project right …
php data-structures splWhen should I use InvalidArgumentException and when UnexpectedValueException? They look the same to me. Note that one extends LogicException and …
php exception splWe can get the files in a directory in PHP by $files = new DirectoryIterator() after that is there an easy …
php sorting spl$file = new SplFileObject('/path/to/file.txt'); How can I find the number of lines in a file with …
php splI need to list all files (which have certain extensions) in a folder and its sub-folders. I used RecursiveIteratorIterator as …
php file splPHP defines two SPL exceptions for invalid keys: OutOfRangeException: Exception thrown when an illegal index was requested. This represents errors …
php exception spl