Questions tagged [spl]

SPL is a collection of PHP interfaces and classes that are meant to solve standard problems. This tag is not to be confused with the [shakespeare-lang] tag for Shakespeare Programming Language

SPL stands for Standard PHP Library. It is a collection of PHP interfaces and classes that are meant to solve standard problems. It contains a large set of predefined iterators, data-structures, interfaces and exceptions that can be used and extended.

Documentation can be found here. It is available by default from PHP 5.0.0 onwards.

365 questions
-1
votes
1 answer

How to sort multikey in php?

Array ( [0] => stdClass Object ( [Id] => 18 [AccNo] => 1 [Title] => Hardware [Description] => Mobile. [ManuDate]…
Nitin Karale
  • 789
  • 3
  • 12
  • 34
-1
votes
1 answer

RecursiveFilterIterator::accept filters ous directories called "0"

I have this simple class: class MyRecursiveFilterIterator extends RecursiveFilterIterator { public function accept() { $filename = $this->current()->getFilename(); // Skip hidden files and directories. if ($filename[0]…
Tyler V.
  • 2,471
  • 21
  • 44
-1
votes
1 answer

SplFixedArray seems slower than array()

Everyone says SplFixedArray is faster than array() but...
neubert
  • 15,947
  • 24
  • 120
  • 212
-2
votes
1 answer

I am trying to extract retailer locations from a certain website

Is it possible to tap into the database or export all store locations from a given website instead of copying and pasting? For example, I need to retrieve all retailer locations from this site http://goo.gl/kQkE28.
-2
votes
1 answer

PHP, Iterator Interface

I am Studying about PHP SPL - (Standard PHP Library), And i am having some problems understanding the interface Iterator. I am studying from this example:Iterator Interface. And i am really dont understand how does Iterator Interface allow us to run…
Blanktext
  • 1,528
  • 3
  • 12
  • 17
1 2 3
24
25