Re: passing Multidimensional array thru the URL
Check out serialize() and unserialize() :
http://www.php.net/serialize
http://www.php.net/unserialize
They basically let you take any type of variable (objects, arrays,
etc....but not resource handles) and turn them into a string. So, on
your first page you might have:
$url_data = urlencode(serialize($data));
and on the second page:
$data = unserialize(urldecode($url_data));
.
Relevant Pages
- Re: Incomlete object?
... you explained how to serialize objects and unserialize them. ... | Some types of data can not be serialized thus stored in sessions. ... | includes resource variables or objects with circular references (i.e. ... given that you yourself recognize that the resource luther is trying to ... (alt.php) - Re: problems returning ArrayList from webServices
... - Collections are always serialized as simple arrays. ... If you want to serialize as a specific collection class rather than just an ... On the client side, ... > instead of return an ArrayList object, ... (microsoft.public.dotnet.framework.aspnet.webservices) - Re: Exiting a child macro, where to find more info on error trapping in Excel VBA, and maybe more in
... I'd start with Chip Pearson's page about error trapping: ... I don't know of any resource that can serve as a tutorial on arrays. ... This occurs in a child macro and "If foundcell is nothing", ... (microsoft.public.excel.programming) - Re: Database suggestion
... I unserialize an 8MB file, which contains the db array, and put the ... have been using serialize() to store the arrays, ... (comp.lang.php) - Re: Convert a dataset to an array
... I'm not trying to serialize. ... I'm trying to load data into a component. ... component accepts 1D arrays. ... StringBuilderVal.Append.Append(blah blah blah Yuck!!! ... (microsoft.public.dotnet.languages.csharp) |
|