getting reference to array value changes structure of array?

    Date: 02/12/10 (PHP Development)    Keywords: database

    I'm surprised to see the var_dumps aren't identical. Is there any reason in practice to worry about the difference between them? Also, in general, is code like following frowned upon? I'm building up a data structure through reading rows from a database -- an array of arrays.

    array('C'=>'C')));
    has output
    array(1) {
      ["B"]=>
      &array(1) {
        ["C"]=>
        string(1) "C"
      }
    }
    array(1) {
      ["B"]=>
      array(1) {
        ["C"]=>
        string(1) "C"
      }
    }

    Source: https://php-dev.livejournal.com/82911.html

« phpAPP: Include file to... || Давайте писать... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home