note 75588 added to function.mysqli-stmt-bind-result

From: Date: Thu, 07 Jun 2007 02:47:43 +0000
Subject: note 75588 added to function.mysqli-stmt-bind-result
Groups: php.notes 
Request: Send a blank email to php-notes+get-127259@lists.php.net to get a copy of this message
if you wanna call this function using like: <?php $add = call_user_func_array('mysqli_stmt_bind_result', $data); ?> you'll need to add the the prepared statement links in the $data array; the easiest wy to add a string on the beginning of an array I found was like the below, reversing the array, adding the string and then reversing the array again to get a proper order... array_unshift() only excepts arrays and typecasting didn't work for me. In my class this would look like: <? $data = array_reverse($data); $data[] = $this->prepared; $data = array_reverse($data); ?> Hope it's usefull to anyone... ---- Server IP: 83.137.20.120 Probable Submitter: 83.86.58.234 ---- Manual Page -- http://www.php.net/manual/en/function.mysqli-stmt-bind-result.php Edit -- https://master.php.net/note/edit/75588 Del: integrated -- https://master.php.net/note/delete/75588/integrated Del: useless -- https://master.php.net/note/delete/75588/useless Del: bad code -- https://master.php.net/note/delete/75588/bad+code Del: spam -- https://master.php.net/note/delete/75588/spam Del: non-english -- https://master.php.net/note/delete/75588/non-english Del: in docs -- https://master.php.net/note/delete/75588/in+docs Del: other reasons-- https://master.php.net/note/delete/75588 Reject -- https://master.php.net/note/reject/75588 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#127259) next »