블로그 이미지
암초보

calendar

1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

Notice

Tag

04-26 00:07
2014. 9. 26. 16:19 프로그래밍/PHP

If statement blocks do not have their own scope.


즉, 아래 코드는 "Hello..."을 출력할 것이다.


$cond = true;
if($cond) {
      $a = "Hello...";
}
echo $a;




'프로그래밍 > PHP' 카테고리의 다른 글

PHP 수행 시간 측정  (0) 2014.11.13
html tag 제거  (0) 2014.08.05
php 에서 excel로 저장시 br태그 문제  (0) 2013.06.25
posted by 암초보