← All docs

mysqli_stmt_bind_param()

Binds variables to a prepared statement's placeholders.

mysqli_stmt_bind_param()

function mysqli_stmt_bind_param(mixed $statement, string $types, ...$vars): bool

Binds variables to a prepared statement’s placeholders.

Parameters:

  • $statement (mixed)
  • $types (string)
  • ...$vars - variadic: collects excess arguments into $vars.

Returns: bool

Availability

  • Compiled (AOT): supported through an injected elephc-PHP prelude.
  • eval() (magician interpreter): not available inside eval’d code.

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how mysqli_stmt_bind_param is implemented in the compiler, see the internals page.