Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PHP がポイント値をグローバル変数として保持できないのはなぜですか?
<?php $a = array(); $a[] = 'works'; function myfunc () { global $a, $b ,$c; $b = $a[0]; $c = &$a[0]; } myfunc(); echo ' $b '.$b; //works echo ', $c '.$c; //fails ?>