(unknown)
echo -- 하나 혹은 그 이상의 문자열을 출력한다.
설명
echo ( string arg1 [, string argn...])
무돈 인수를 출력한다.
echo() 는 실제로 함수가 아니다(이는 하나의 랭귀지 스트럭쳐이다.) 따라서 이 함수와 함께 parantheses 를 사용할 필요가 없다.
예 1.
echo() 예 echo "Hello World";
echo "This spans
multiple lines. The newlines will be
output as well";
echo "This spans\nmultiple lines. The newlines will be\noutput as well."; |
|
참고:
실제로 하나 이상의 인수를 echo 함수에 전달 하고자 한다면, parentheses 내에서 인수를 괄호로 닫지 말아야 한다.
In fact, if you want to pass more than one parameter to echo,
you must not enclose the parameters within parentheses.
print(),
printf(), 그리고
flush()를 참고하라.