« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 2 of about 2 for Wor (0.002 sec.)
rtrim — 文字列の最後から空白 (もしくはその他の文字) を取り除く | PHP 8.3 11228
rtrim (PHP 4, PHP 5, PHP 7, PHP 8) rtrim — 文字列の最後から空白 (もしくはその他の文字) を取り除く 説明 function rtrim ( string $string , string $characters = " \n\r\t\v\x00" ): string この関数は文字列 string の最後から空白文字 (あるいはその ... 範囲を指定することも可能です。 戻り値 変更後の文字列を返します。 例 例1 rtrim() の使用例 <?php $text = "\t\tThese are a few words :) ... " ; $binary = "\x09Example string\x0A" ; $hello = "Hello World" ; var_dump ( $text , $binary , $hello ); print "\ ... an = rtrim ( $binary , "\x00..\x1F" ); var_dump ( $clean ); ?> 上の例の出力は以下となります。 string(32) " These are a few words :) ... " string(16) " Example string " string(11) "Hello World" string(30) " These are a few words :) ..." string(26) " ... These are a few words :)" string(9) "Hello Wor" string(15) " Example string" 参考 trim() - 文字列の先頭および末尾にあるホワイトスペース (もしく ...
https://man.mtool.work/php/8.3/function.rtrim.html
trim — 文字列の先頭および末尾にあるホワイトスペース (もしくはその他の文字) を取... 7485
trim (PHP 4, PHP 5, PHP 7, PHP 8) trim — 文字列の先頭および末尾にあるホワイトスペース (もしくはその他の文字) を取り除く 説明 function trim ( string $string , string $characters = " \n\r\t\v\x00" ): string この関数は string の最初および最後か ... 指定することも可能です。 戻り値 ホワイトスペースを取り除いた文字列 例 例1 trim() の使用例 <?php $text = "\t\tThese are a few words :) ... " ; $binary = "\x09Example string\x0A" ; $hello = "Hello World" ; var_dump ( $text , $binary , $hello ); print "\ ... ean = trim ( $binary , "\x00..\x1F" ); var_dump ( $clean ); ?> 上の例の出力は以下となります。 string(32) " These are a few words :) ... " string(16) " Example string " string(11) "Hello World" string(28) "These are a few words :) ..." string(24) "Th ... ese are a few words :)" string(5) "o Wor" string(9) "ello Worl" string(14) "Example string" 例2 trim() を用いて配列の値をトリミングする <?ph ...
https://man.mtool.work/php/8.3/function.trim.html
PREV 1 NEXT