(Available since version 1.0)
Heap::parentIndex — Returns the index of the parent
$index
)
Returns the index of the parent of the node referred to by
the index, index
, in the binary tree.
index
The index to be queried.
The index of the parent or NULL
if none exists.