php - is PDO::PARAM_INT redundant? -
does pdo::param_int
perform function @ when used $db->quote()
function? e.g. $db->quote($user['id'], pdo::param_int)
?
it seems is, because string input passed trough. not mention keeps quotes around integer. there reason why should use it?
it has no effect, since, after all, are running quote
function. it's natural gets wrapped in quotes. pdo::param_int
more important in other contexts, prepared statements, handled differently strings.
quote
more concerned other data types should not quoted or should quoted differently, pdo::param_bool
Comments
Post a Comment