HTMLPurifier_Zipper::toArray PHP Method

toArray() public method

Convert zipper back into a normal array, optionally filling in the hole with a value. (Usually you should supply a $t, unless you are at the end of the array.)
public toArray ( $t = NULL )
    public function toArray($t = NULL)
    {
        $a = $this->front;
        if ($t !== NULL) {
            $a[] = $t;
        }
        for ($i = count($this->back) - 1; $i >= 0; $i--) {
            $a[] = $this->back[$i];
        }
        return $a;
    }