array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'ds-priorityqueue.construct.php', 1 => 'Ds\\PriorityQueue::__construct', ), 'up' => array ( 0 => 'class.ds-priorityqueue.php', 1 => 'Ds\\PriorityQueue', ), 'prev' => array ( 0 => 'ds-priorityqueue.clear.php', 1 => 'Ds\\PriorityQueue::clear', ), 'next' => array ( 0 => 'ds-priorityqueue.copy.php', 1 => 'Ds\\PriorityQueue::copy', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ds/ds/priorityqueue/construct.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL ds >= 1.0.0)
Ds\PriorityQueue::__construct — Creates a new instance
Creates a new instance.
Beispiel #1 Ds\PriorityQueue::__construct() example
<?php
$queue = new \Ds\PriorityQueue();
var_dump($queue);
?>
Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
object(Ds\PriorityQueue)#1 (0) { }