This page is really not clear for the function: http://www.php.net/manual/en/pdostatement.execute.php
I’m not exactly sure why I would bindParam as oppose to just passing in an array. With bindParam, I’ll have to specify the type.
So my question would be, if I just do $stmt->execute(array("somevalue", b'somebinarydata', 10203, 201.3));, would the types be automatically recognized? Is there anything I have be aware of?
Thanks.
The answer is No, The PHP manual states:
the page stating the entity
PDO::PARAM_STRstates:source: http://www.php.net/manual/en/pdo.constants.php