You are here

public function FastPriorityQueue::unserialize in Zircon Profile 8.0

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

Deserialize

Parameters

string $data:

Return value

void

File

vendor/zendframework/zend-stdlib/src/FastPriorityQueue.php, line 282

Class

FastPriorityQueue
This is an efficient implementation of an integer priority queue in PHP

Namespace

Zend\Stdlib

Code

public function unserialize($data) {
  foreach (unserialize($data) as $item) {
    $this
      ->insert($item['data'], $item['priority']);
  }
}