« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for newstr (0.000 sec.)
str_replace — 検索文字列に一致したすべての文字列を置換する | PHP 8.3 9414
str_replace (PHP 4, PHP 5, PHP 7, PHP 8) str_replace — 検索文字列に一致したすべての文字列を置換する 説明 function str_replace ( array | string $search , array | string $replace , string | array $subject , int &$count = null ): string | arra ... array( "\r\n" , "\n" , "\r" ); $replace = '<br />' ; // まず最初に \r\n を置換するので、二重に変換されることはありません $newstr = str_replace ( $order , $replace , $str ); echo $newstr , PHP_EOL ; // 出力は F となります。A が B に、そして B が C に、 ...
https://man.mtool.work/php/8.3/function.str-replace.html
PREV 1 NEXT