« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 8 of about 8 for wordwrap (0.003 sec.)
wordwrap — 指定した文字数で文字列を分割する | PHP 8.3 13790
wordwrap (PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8) wordwrap — 指定した文字数で文字列を分割する 説明 function wordwrap ( string $string , int $width = 75 , string $break = "\n" , bool $cut_long_words = false ): string 指定した文字数で、指定した文 ... ueError がスローされるようになりました。 これより前のバージョンでは、 E_WARNING が発生し、 false を返していました。 例 例1 wordwrap() の例 <?php $text = "The quick brown fox jumped over the lazy dog." ; $newtext = wordwrap ( $text , 20 , "<br />\n" ); ec ... ho $newtext ; ?> 上の例の出力は以下となります。 The quick brown fox<br /> jumped over the lazy<br /> dog. 例2 wordwrap() の例 <?php $text = "A very long woooooooooooord." ; $newtext = wordwrap ( $text , 8 , "\n" , true ); echo " $newtext \n" ... ; ?> 上の例の出力は以下となります。 A very long wooooooo ooooord. 例3 wordwrap() の例 <?php $text = "A very long woooooooooooooooooord. and something" ; $newtext = wordwrap ( $text , 8 , "\n" , false ) ...
https://man.mtool.work/php/8.3/function.wordwrap.html
chunk_split — 文字列をより小さな部分に分割する | PHP 8.3 8585
chunk_split (PHP 4, PHP 5, PHP 7, PHP 8) chunk_split — 文字列をより小さな部分に分割する 説明 function chunk_split ( string $string , int $length = 76 , string $separator = "\r\n" ): string 文字列をより小さな部分に分割する際に使用され、 base ... ata )); echo $new_string , PHP_EOL ; ?> 参考 str_split() - 文字列を配列に変換する explode() - 文字列を文字列により分割する wordwrap() - 指定した文字数で文字列を分割する » RFC 2045 他のマニュアルの関連ページ Python chunk Linux JM split(1) Vim usr_08 Vim w ...
https://man.mtool.work/php/8.3/function.chunk-split.html
nl2br — 改行文字の前に HTML の改行タグを挿入する | PHP 8.3 8585
nl2br (PHP 4, PHP 5, PHP 7, PHP 8) nl2br — 改行文字の前に HTML の改行タグを挿入する 説明 function nl2br ( string $string , bool $use_xhtml = true ): string string に含まれるすべての改行文字 ( \r\n 、 \n\r 、 \n および \r ) の前に <br /> ある ... lspecialchars() - 特殊文字を HTML エンティティに変換する htmlentities() - 適用可能な文字を全て HTML エンティティに変換する wordwrap() - 指定した文字数で文字列を分割する str_replace() - 検索文字列に一致したすべての文字列を置換する 他のマニュアルの関連ペー ...
https://man.mtool.work/php/8.3/function.nl2br.html
mail — メールを送信する | PHP 8.3 8513
mail (PHP 4, PHP 5, PHP 7, PHP 8) mail — メールを送信する 説明 function mail ( string $to , string $subject , string $message , array | string $additional_headers = [] , string $additional_params = "" ): bool メールを送信します。 パラメータ ... 用いて単純なメールを送信する。 <?php // 本文 $message = "Line 1\r\nLine 2\r\nLine 3" ; // 1 行が 70 文字を超える場合のため、wordwrap() を用いる $message = wordwrap ( $message , 70 , "\r\n" ); // 送信する mail ( 'caffeinated@example.com' , 'My Subject' , $ ...
https://man.mtool.work/php/8.3/function.mail.html
substr — 文字列の一部分を返す | PHP 8.3 8278
substr (PHP 4, PHP 5, PHP 7, PHP 8) substr — 文字列の一部分を返す 説明 function substr ( string $string , int $offset , ? int $length = null ): string 文字列 string の、 offset で指定された位置から length バイト分の文字列を返します。 パラメ ... う trim() - 文字列の先頭および末尾にあるホワイトスペース (もしくはその他の文字) を取り除く mb_substr() - 文字列の一部を得る wordwrap() - 指定した文字数で文字列を分割する 文字列への文字単位のアクセスと修正 他のマニュアルの関連ページ Django 3.2.7 Python mma ...
https://man.mtool.work/php/8.3/function.substr.html
文字列 | PHP 8.3 8205
文字列 はじめに このセクションにある関数はすべて、 文字列をいろいろな方法で操作します。 正規表現 や URL 処理 の節にも関連する記述があります。 文字列の動作に関する情報、特にシングルクオート、ダブルクオート、 エスケープシーケンスについては、マ ... トされた文字列をストリームに書き込む vprintf — フォーマットされた文字列を出力する vsprintf — フォーマットされた文字列を返す wordwrap — 指定した文字数で文字列を分割する 変更履歴 他のマニュアルの関連ページ Linux JM strstr(3) Linux JM uuencode(5) Linux JM uu ...
https://man.mtool.work/php/8.3/book.strings.html
String 関数 | PHP 8.3 8205
String 関数 参考 より強力な文字列処理および処理関数については、 Perl 互換正規表現関数 を参照ください。 マルチバイト文字のエンコーディングを扱うときは、 マルチバイト文字列関数 . を参照ください。 目次 addcslashes — C 言語と同様にスラッシュで文 ... トされた文字列をストリームに書き込む vprintf — フォーマットされた文字列を出力する vsprintf — フォーマットされた文字列を返す wordwrap — 指定した文字数で文字列を分割する 他のマニュアルの関連ページ Linux JM strstr(3) Linux JM uuencode(5) Linux JM uuencode(1) ...
https://man.mtool.work/php/8.3/ref.strings.html
変更履歴 | PHP 8.3 8061
変更履歴 この拡張モジュールのクラス/関数/メソッドには次のような変更がありました。 Version Function Description 8.5.0 chr [0, 255] の範囲外の整数を渡すことは非推奨になりました。 fprintf 精度を指定しないフォーマッタを使った場合、 精度を 0 とし ... った場合、 ValueError がスローされるようになりました。 これより前のバージョンでは、代わりに E_WARNING を発生させていました。 wordwrap break が空文字列の場合、 ValueError がスローされるようになりました。 これより前のバージョンでは、 E_WARNING が発生し、fals ...
https://man.mtool.work/php/8.3/changelog.strings.html
PREV 1 NEXT