code.progysm.com

PDOStatement

Type
	Object

Functions
	bindParam(string $name, mixed $variable)
	bindValue(string $name, mixed $value[ $type = \PDO::PARAM_STR])
	debugDumpParams(void) : void
	execute([array $arr])
	fetch() : array|false

Examples:
	$stmt = $db->prepare('INSERT INTO table SET field1 = 12345 WHERE id = :id');
	$stmt->bindValue(':id', 9, \PDO::PARAM_INT);
	$stmt->execute();

Notes:
	debugDumpParams. en 7.2, affiche la requête SQL avec les valeurs si "emulated prepares" est activé