본문 바로가기

프로그래밍

php 배열 html에서 깔끔하게 보기

배열 안 내용을 테스트할 때


echo '<pre>';

print_r( $array );

echo '</pre>';


를 입력하면 한줄씩 출력됩니다.