[PHP]Variable Variables
개발관련/PHP 2012. 4. 20. 15:46 |helloVariable Variables "; echo $hello."
"; echo $$a."
"; // What does $$var[1] mean? // #1: get the first element then evaluate dynamically? // #2: evaluate dynamically then get the first element? // Use {} to make it clear: // echo ${$var[1]}; // for #1 // echo ${$var}[1]; // for #2 ?>
Hello everyone.
Hello everyone.
'개발관련 > PHP' 카테고리의 다른 글
Head First PHP & MySQL - 2장: "MySQL 연결하기"에서.. (0) | 2012.05.28 |
---|---|
Head First PHP & MySQL - 1장: "딱딱한 페이지에 생명 붙여넣기"에서.. (0) | 2012.05.28 |
[PHP]Upload (0) | 2012.04.20 |
[PHP]Template Variable (0) | 2012.04.20 |
[PHP]Template Replace (Object Oriented) (0) | 2012.04.20 |