mysqli_stmt_param_count
stmt->param_count
Returns the number of parameter for the given statement
&reftitle.description;
Procedural style:
intmysqli_stmt_param_count
mysqli_stmtstmt
Object oriented style (property):
mysqli_stmt
intparam_count
Returns the number of parameter markers present in the prepared statement.
&reftitle.parameters;
&mysqli.stmt.description;
&reftitle.returnvalues;
Returns an integer representing the number of parameters.
&reftitle.examples;
Object oriented style
prepare("SELECT Name FROM Country WHERE Name=? OR Code=?")) {
$marker = $stmt->param_count;
printf("Statement has %d markers.\n", $marker);
/* close statement */
$stmt->close();
}
/* close connection */
$mysqli->close();
?>
]]>
Procedural style
]]>
&example.outputs;
&reftitle.seealso;
mysqli_prepare