odbc_execute
Function • Params changed in PHP 8.4
Execute a prepared statement.
odbc_execute Function synopsis
odbc_execute(Odbc\Result $statement, array $params = []): bool
Parameters
$statement
TypeOdbc\Result
The ODBC result object from odbc_prepare.
$params
OptionalTypearrayDefault value[]
Parameters in $params will be
substituted for placeholders in the prepared statement in order.
Elements of this array will be converted to strings by calling this
function.
Return value
Typebool
Returns true on success, false on failure
Changes to the odbc_execute Function
PHP 8.4
- Parameter type added for parameter #1 (
$statement):Odbc\Result
- odbc_execute($statement, array $params = []): bool
+ odbc_execute(Odbc\Result $statement, array $params = []): bool PHP 8.0
- Return type added:
bool - Parameter name of parameter #1 changed:
$result_idto$statement - Parameter name of parameter #2 changed:
$parameters_arrayto$params - Parameter type added for parameter #2 (
$params):array - Parameter default value added for position #2 (
$params):[]
- odbc_execute($result_id, $parameters_array)
+ odbc_execute($statement, array $params = []): bool odbc_execute Function Availability
odbc_execute Function Availability| PHP Version | Availability |
|---|---|
| PHP 8.6Upcoming Release | Yes |
| PHP 8.5Supported (Latest) | Yes |
| PHP 8.4Supported | Yes |
| PHP 8.3Security-Fixes Only | Yes |
| PHP 8.2Security-Fixes Only | Yes |
| PHP 8.1Unsupported | Yes |
| PHP 8.0Unsupported | Yes |
| PHP 7.4Unsupported | Yes |
| PHP 7.3Unsupported | Yes |
| PHP 7.2Unsupported | Yes |
| PHP 7.1Unsupported | Yes |
| PHP 7.0Unsupported | Yes |
| PHP 5.6Unsupported | Yes |
| PHP 5.5Unsupported | Yes |
| PHP 5.4Unsupported | Yes |
| PHP 5.3Unsupported | Yes |