PHP print()

1 개요[ | ]

PHP print()
  • 문자열을 출력하는 PHP 함수
  • 파라미터를 1개만 받는다.
print "안녕 친구들";
print( "안녕 친구들" );
$str = "안녕 친구들";
print $str;
print( $str );
print "여러 줄
출력하기";
print "여러 줄\n출력하기";
print <<<END
여러 줄
출력하기
END;

2 echo와 비교[ | ]

echo '안녕', '친구들';
print( '안녕', '친구들' );

3 같이 보기[ | ]

4 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}