020 555 1111
  • Old fashion, modular, procedural PHP plus some scaffolding techniques to allow it to mimic MVC simplicity.
  • A quick reference to help you find in PHP maze what needs to be done and how to do it.
  • Learn a PHP Object Oriented Programming by building a live discussion forum application.
  • MVC - Model View Controller - real life, easy reference and application.
This product has options, take a look at them and select ones you like the most.
Options are displayed under image section.

PDO::PARAM_INPUT_OUTPUT
[MySQL PDO Const]

PDO::PARAM_INPUT_OUTPUT (integer)

Specifies that the parameter is an INOUT parameter for a stored procedure.

You must use it with one of PDO::PARAM_* family to typecast data type.

Here's mentioned PARAM_* family:

  • PDO::PARAM_BOOL
  • PDO::PARAM_NULL
  • PDO::PARAM_INT
  • PDO::PARAM_STR
  • PDO::PARAM_LOB

See example below for how it is done.

Used with:

  • PDOStatement::bindColumn
  • PDOStatement::bindParam
  • PDOStatement::bindValue
//$value_assigned_to_placeholder evaluates to integer, since in this example PARAM_INT was used.
$sth->bindValue(':named_paceholder', $value_assigned_to_placeholder, PDO::PARAM_INT|PDO::PARAM_INPUT_OUTPUT)