note 116328 added to function.call-user-func-array
| From: | admin at NOSPAM dot t61 dot org | Date: | Sat, 13 Dec 2014 03:13:57 +0000 |
| Subject: | note 116328 added to function.call-user-func-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-201140@lists.php.net to get a copy of this message | ||
There is a easy way to bind NULL values: just replace your type with integer (use "i"),
and value NULL will be inserted as NULL because "i" builds a query without quotes.
<?php
private static function _determine_variable_type( $value = '' ) {
$type = substr( gettype( $value ), 0, 1 );
if ($type == 'N')
$type = 'i';
return $type;
}
?>
----
Server IP: 72.52.91.14
Probable Submitter: 125.24.165.97
----
Manual Page -- http://php.net/manual/en/function.call-user-func-array.php
Edit -- https://master.php.net/note/edit/116328
Del: integrated -- https://master.php.net/note/delete/116328/integrated
Del: useless -- https://master.php.net/note/delete/116328/useless
Del: bad code -- https://master.php.net/note/delete/116328/bad+code
Del: spam -- https://master.php.net/note/delete/116328/spam
Del: non-english -- https://master.php.net/note/delete/116328/non-english
Del: in docs -- https://master.php.net/note/delete/116328/in+docs
Del: other reasons-- https://master.php.net/note/delete/116328
Reject -- https://master.php.net/note/reject/116328
Search -- https://master.php.net/manage/user-notes.php