update : 2015.11.03
php.shukuma.com검색:
|
wordwrap(PHP 4 >= 4.0.2, PHP 5) wordwrap — Wraps a string to a given number of characters 설명
string wordwrap
( string
$str
[, int $width = 75
[, string $break = "\n"
[, bool $cut = false
]]] )Wraps a string to a given number of characters using a string break character. 인수
반환값Returns the given string wrapped at the specified length. 예제
Example #1 wordwrap() example
<?php 위 예제의 출력: The quick brown fox<br /> jumped over the lazy<br /> dog. Example #2 wordwrap() example
<?php 위 예제의 출력: A very long wooooooo ooooord. Example #3 wordwrap() example
<?php 위 예제의 출력: A very long woooooooooooooooooord. and something |