note 105563 added to mysqli-stmt.bind-param

From: Date: Sat, 27 Aug 2011 21:00:45 +0000
Subject: note 105563 added to mysqli-stmt.bind-param
Groups: php.notes 
Request: Send a blank email to php-notes+get-182771@lists.php.net to get a copy of this message
Simple workaround for casting: <?php function mysqli_cast_workaround() { $numargs = func_num_args(); $types = ''; for ($i = 0; $i < $numargs; $i++) { $arg = func_get_arg($i); if (is_numeric($arg)) { $types.="i"; }else{ $types.="s"; } $args[($i+1)] = $arg; unset($arg); } $args[0] = $types; return call_user_func_array('mysqli_stmt_bind_param',$args); } ?> ---- Server IP: 69.147.83.197 Probable Submitter: 94.21.143.99 ---- Manual Page -- http://www.php.net/manual/en/mysqli-stmt.bind-param.php Edit -- https://master.php.net/note/edit/105563 Del: integrated -- https://master.php.net/note/delete/105563/integrated Del: useless -- https://master.php.net/note/delete/105563/useless Del: bad code -- https://master.php.net/note/delete/105563/bad+code Del: spam -- https://master.php.net/note/delete/105563/spam Del: non-english -- https://master.php.net/note/delete/105563/non-english Del: in docs -- https://master.php.net/note/delete/105563/in+docs Del: other reasons-- https://master.php.net/note/delete/105563 Reject -- https://master.php.net/note/reject/105563 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#182771) next »