형식 문자열이 마음에 들면, PHP로 단락이 잘된 단락처럼 어떻게 바꿀 수 있습니까? 텍스트 맞춤과 같은 예제입니다 : CSS와 브라우저 창의 전폭을 정당화합니까? 결과에서PHP 문자열의 단락 스타일
<?php
$text = "It is a long
established fact that a reader
will be distracted
by the readable content of a
page when looking at its layout.
The point of using Lorem Ipsum
is that it has a
more-or-less normal distribution of
letters, as opposed to using 'Content here,
content here', making it look like readable English.
Many desktop publishing packages and web
page editors now use Lorem Ipsum as their
default model text, and a search for 'lorem ipsum'
will uncover many web sites still in their infancy.
Various versions have evolved over the years,
sometimes by accident, sometimes on
purpose (injected humour and the like).
";
?>
나는이 형식이 단락을 설정하려면 :
그것은 레이아웃을 볼 때 독자가 페이지의 읽을 수있는 내용으로 산만됩니다 긴 설립 사실이다. Lorem Ipsum 사용의 요점은 '여기에있는 내용, 여기에있는 내용'을 사용하는 것과 대조적으로 글자의 정규 분포가 더 많아 지거나 읽을 수있는 영어처럼 보이게한다는 것입니다. 많은 데스크탑 게시 패키지와 웹 페이지 편집기는 이제 Lorem Ipsum을 기본 모델 텍스트로 사용하고 'lorem ipsum'을 검색하면 아직 초기 단계에있는 많은 웹 사이트가 검색됩니다. 다양한 버전이 수년 동안, 때로는 우연히, 때로는 의도적으로 (주입 된 유머 등) 진화 해 왔습니다.
을
<p>
태그에 변수를 포장하고 적용 –