Related Links : Search Engine Optimization | | Search Engine Marketing | Online Marketing | Freelance Programmer| SEO Thailand | SEO Expert | SEO services | PHP Programmer Thailand | SEO Tutorial | What is SEO |

  Home Our SEO Services SEO Expert Consultant Php Programmer Scripts| Email : sachin {at} jainsachin {dot} com

PHP | Constructs a new stack implemented using a doubly linked list | Manual | Tutorial | Help

SEO Services



Website Programming in PHP / MYSQL



Friends


    Constructs a new stack implemented using a doubly linked list

    SplStack::__construct

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

    SplStack::__construct — Constructs a new stack implemented using a doubly linked list

    Description

    SplStack::__construct ( void )

    This constructs a new empty stack.

    Note: This method automatically sets the iterator mode to SplDoublyLinkedList::IT_MODE_LIFO.

    Parameters

    This function has no parameters.

    Return Values

    No value is returned.

    Examples

    Example #1 SplStack::__construct() example

    <?php
    $q 
    = new SplStack();

    $q[] = 1;
    $q[] = 2;
    $q[] = 3;

    foreach (
    $q as $elem)  {
     echo 
    $elem."\n";
    }
    ?>

    The above example will output:

    3
    2
    1
    


    SEO Tutorial / Articles





    Php / Mysql Tutorial



    Articles



      Portfolio


      SEO by Jainsachin