eregi_replace():PHPリファレンス

eregi_replace()に関する用語の解説。

eregi_replace()とは

eregi_replace関数は大文字と小文字を区別せずに正規表現で文字列を置き換えます。ereg_replaceとの違いは、大文字と小文字を区別しない点のみです。

PHP書式

eregi_replace(パターン,置き換え後の文字列,処理対象の文字列)

戻り値

置き換え処理結果の文字列。

サンプルコード

出力結果

補足