<?php$string = $pdo->quote ( "Co'mpl''ex \"st'\"ring", // string $string PDO::PARAM_BOOLPDO::PARAM_EVT_ALLOCPDO::PARAM_EVT_EXEC_POSTPDO::PARAM_EVT_EXEC_PREPDO::PARAM_EVT_FETCH_POSTPDO::PARAM_EVT_FETCH_PREPDO::PARAM_EVT_FREEPDO::PARAM_EVT_NORMALIZEPDO::PARAM_INPUT_OUTPUTPDO::PARAM_INTPDO::PARAM_LOBPDO::PARAM_NULLPDO::PARAM_STMTPDO::PARAM_STR ✓? // [int $parameter_type = PDO::PARAM_STR]);?>
$pdo = 'PDO instance' $string = '\'Co\'\'mpl\'\'\'\'ex "st\'\'"ring\''
'PDO instance'
'\'Co\'\'mpl\'\'\'\'ex "st\'\'"ring\''
#1
PDO::quote
("Nice")
#2
("Naughty ' string")
#3
("Co'mpl''ex \"st'\"ring")