downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<SplDoublyLinkedList::bottomSplDoublyLinkedList::count>
Last updated: Thu, 26 Jun 2008

SplDoublyLinkedList::__construct

(No version information available, might be only in CVS)

SplDoublyLinkedList::__construct — Constructs a new doubly linked list

Description

SplDoublyLinkedList::__construct ( void )

This constructs a new empty doubly linked list.

Parameters

This function has no parameters.

Return Values

No value is returned.

Examples

Example #1 SplDoublyLinkedList::__construct() example

<?php
$dll
= new SplDoublyLinkedList();

$dll->push(2);
$dll->push(3);
$dll->unshift(5);

var_dump($dll);
?>

The above example will output:

object(SplDoublyLinkedList)#1 (2) {
  ["flags":"SplDoublyLinkedList":private]=>
  int(0)
  ["dllist":"SplDoublyLinkedList":private]=>
  array(3) {
    [0]=>
    int(5)
    [1]=>
    int(2)
    [2]=>
    int(3)
  }
}



add a noteadd a note User Contributed Notes
Constructs a new doubly linked list
There are no user contributed notes for this page.




<SplDoublyLinkedList::bottomSplDoublyLinkedList::count>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs