Re: what is mixed type variable
| From: | Hannes Magnusson | Date: | Wed, 13 Jun 2007 14:02:11 +0000 |
| Subject: | Re: what is mixed type variable | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-35690@lists.php.net to get a copy of this message | ||
You are confusing the PHP syntax with the 'documentation syntax'.
See http://php.net/about.prototypes && http://php.net/language.pseudo-types
For further information please consult with http://php.net/support
-Hannes
On 6/12/07, Simon Moses <ksmoses@gmail.com> wrote:
dear sir, i want to write my own function in which i want to use mysqli_stmt_bind_param(object $stmt, string $paramtype, mixed $param ); 1. how to define a function with "mixed parameter"? 2. how to call that function with mixed argument? for ex.function Stmt(object $link, string $query, string $paramtype, mixed$param){$stmt = mysqli_stmt_init($link); mysqli_stmt_prepare($stmt, $query); mysqli_stmt_bind_param($stmt,$paramtype, $param );mysqli_stmt_execute($stmt); }i have $link, $query, $paramtype. i have $name, $address, $city, $pincode etc. for "mixed $param". how to call this function? thanks and regards, Simon Moses. -- ************************** Visit My Personal Website http://www.ksmoses.com updated: 06 Jun 2007. Simon Moses **************************