QuoteMeta

(PHP 3, PHP 4 )

QuoteMeta -- メタ文字をクォートする

説明

string quotemeta ( string str)

文字列 str について、

. \\ + * ? [ ^ ] ( $ )
の間にあるすべての文字 の前にバックスラッシュ文字( \ )でクォートして返します。

addslashes() , htmlentities() , htmlspecialchars() , nl2br() , stripslashes() も参照下さい。