You are here

public function SplStack::unserialize in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-stdlib/src/SplStack.php \Zend\Stdlib\SplStack::unserialize()

Unserialize

Parameters

string $data:

Return value

void

Overrides SplStack::unserialize

1 method overrides SplStack::unserialize()
SplStack::unserialize in vendor/zendframework/zend-stdlib/src/SplStack.php
Unserialize

File

vendor/zendframework/zend-stdlib/src/SplStack.php, line 49

Class

SplStack
Serializable version of SplStack

Namespace

Zend\Stdlib

Code

public function unserialize($data) {
  foreach (unserialize($data) as $item) {
    $this
      ->unshift($item);
  }
}