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 | Construct a new array object | Manual | Tutorial | Help

SEO Services



Website Programming in PHP / MYSQL



Friends


    Construct a new array object

    ArrayObject::__construct

    (PHP 5)

    ArrayObject::__construct — Construct a new array object

    Description

    ArrayObject::__construct ( mixed $input )

    This constructs a new array object.

    Parameters

    input

    The input parameter accepts an array or another ArrayObject.

    Return Values

    No value is returned.

    Examples

    Example #1 ArrayObject::__construct() example

    <?php
    $array 
    = array('1' => 'one',
                   
    '2' => 'two',
                   
    '3' => 'three');

    $arrayobject = new ArrayObject($array);

    var_dump($arrayobject);
    ?>

    The above example will output:

    object(ArrayObject)#1 (3) {
      [1]=>
      string(3) "one"
      [2]=>
      string(3) "two"
      [3]=>
      string(5) "three"
    }
    


    SEO Tutorial / Articles





    Php / Mysql Tutorial



    Articles



      Portfolio


      SEO by Jainsachin