2014-04-08 6 views
0
$DEBUG_MODE && (echo "ss"); 

오류 메시지가 반환 :PHP 바이너리 연산자 후 에코

구문 분석 오류 : 구문 오류, D 예기치 않은 T_ECHO : HOSTS \ \ web_portal \ test.php 라인에 99

우리가 할 수있는 약 사용하지 않고? : 또는? echo 또는 print_r 등등.

답변

0

구문이 잘못되었습니다. 나는 그것이 기능입니다 생각 http://bg2.php.net/print

$DEBUG_MODE && (print('test')); 

http://bg2.php.net/echo

echo is not actually a function (it is a language construct), so you are not required to use parentheses with it

+0

IC - 당신은 인쇄를 사용할 수 있습니다. 고마워! –