Results of 1 - 1 of about 1 for Naughty (0.001 sec.)
- PDO::quote — クエリ用の文字列をクオートする | PHP 8.3 9414
- PDO::quote (PHP 5 >= 5.1.0, PHP 7, PHP 8, PECL pdo >= 0.2.1) PDO::quote — クエリ用の文字列をクオートする 説明 public function PDO::quote ( string $string , int $type = PDO::PARAM_STR ): string | false PDO::quote() は入力文字列のまわりに引用
... ce' 例2 危険な文字列をクオートする <?php $conn = new PDO ( 'sqlite:/home/lynn/music.sql3' ); /* 危険な文字列 */ $string = 'Naughty \' string' ; print "Unquoted string: $string \n" ; print "Quoted string:" . $conn -> quote ( $string ) . "\n" ; ?> 上の例の ... 出力は以下となります。 Unquoted string: Naughty ' string Quoted string: 'Naughty '' string' 例3 複雑な文字列をクオートする <?php $conn = new PDO ( 'sqlite:/home/lynn/musi ...
-
https://man.mtool.work/php/8.3/pdo.quote.html
PREV
1
NEXT