Documentation Home
Connectors and APIs Manual
Download this Manual

Connectors and APIs Manual  /  ...  /  mysqli::stmt_init, mysqli_stmt_init

7.3.8.51 mysqli::stmt_init, mysqli_stmt_init

Copyright 1997-2021 the PHP Documentation Group.

  • mysqli::stmt_init

    mysqli_stmt_init

    Initializes a statement and returns an object for use with mysqli_stmt_prepare

Description

Object oriented style

public mysqli_stmt|false mysqli::stmt_init();

Procedural style

mysqli_stmt|false mysqli_stmt_init(mysqli mysql);

Allocates and initializes a statement object suitable for mysqli_stmt_prepare.

Note

Any subsequent calls to any mysqli_stmt function will fail until mysqli_stmt_prepare was called.

Parameters

link

Procedural style only: A link identifier returned by mysqli_connect or mysqli_init

Return Values

Returns an object.

See Also

mysqli_stmt_prepare