I sometimes see:
$data = $connection->prepare("sql query...");
$data->bindValue(":my_var_to_replace", $foobar, PDO::PARAM_INT);
$data->execute();
but other people simply ommit PDO::PARAM_INT and place the data as an array inside execute (as argument).
Which is preferred? Can it be omitted inside bindValue?