downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Valorile întregi în parametrii funcțiilor> <Modificări în manipularea referințelor
[edit] Last updated: Fri, 17 May 2013

view this page in

Citirea []

<?php
class XmlTest {

    function 
test_ref(&$test) {
        
$test "ok";
    }

    function 
test($test) { }

    function 
run() {
        
$ar = array();
        
$this->test_ref($ar[]);
        
var_dump($ar);
        
$this->test($ar[]);
    }
}

$o = new XmlTest();
$o->run();
?>

Aceasta întotdeauna ar fi trebuit să arunce o eroare fatală E_ERROR, din cauza că [] nu pot fi utilizate pentru citire în PHP. Acesta este cod-sursă invalid în PHP 4.4.2 și PHP 5.0.5 și ulterior.



add a note add a note User Contributed Notes Citirea [] - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites