How can i pass array between URL?
PASSING ARRAY between URL
Collapse
X
-
You can pass the array as one POST variable in a CURL request, but this way each item in the array would be a separate entry in the receiving $_POST array.
The other solution, if you want to pass the array as one string and receive it as one string at the receiving side, the simple answer would be serialize/unserialize, but there are some snags in this solution, depending on the content (special chars, float values, etc) of the array. So you'd better have a look at the php serialize/unserialize functions at http://nl2.php.net/manual/en/function.serialize.php
Ronald :cool:
Comment