Re: passing of array var.

From: Date: Thu, 23 Mar 2000 02:33:31 +0000
Subject: Re: passing of array var.
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-17159@lists.php.net to get a copy of this message
Hi, : hi : i have trouble passing array var from one function to another.. via URL. : : eg: : $key[]; : : <a href="page.php3?key=<? echo $key;?>> .... : : page.php3 : ....... function name($key) : {............. : ...........} : : how do i pass array var from one function to another? : when i "alert" $key in the function , it return "array" If its a known array, say of numbers, choose a nice delimter and join() in your first program and then split() it back in your page.php3 You can always use serialize() and unserialize() to get the string equivalent data for an array to pass between pages via URI. Enjoy! Faisal

« previous php.dev (#17159) next »