Tag: spl

  • PHP data structures: spl Stack

    PHP data structures: spl Stack

    Why no array? Sometimes (yes in web development too) you need to optimize your code for speed and memory usage. PHP is simplified by design and heavily depends on array usage. You can speed things up a little using proper data structures for the job. Luckily the language provides build in classes and interfaces for…