public function SplPriorityQueue::unserialize in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/zendframework/zend-stdlib/src/SplPriorityQueue.php \Zend\Stdlib\SplPriorityQueue::unserialize()
Deserialize
Parameters
string $data:
Return value
void
Overrides SplPriorityQueue::unserialize
1 method overrides SplPriorityQueue::unserialize()
- SplPriorityQueue::unserialize in vendor/
zendframework/ zend-stdlib/ src/ SplPriorityQueue.php - Deserialize
File
- vendor/
zendframework/ zend-stdlib/ src/ SplPriorityQueue.php, line 85
Class
- SplPriorityQueue
- Serializable version of SplPriorityQueue
Namespace
Zend\StdlibCode
public function unserialize($data) {
foreach (unserialize($data) as $item) {
$this
->insert($item['data'], $item['priority']);
}
}