Jump to content

Archived

This topic is now archived and is closed to further replies.

grazzman

Problems with parse_str

Recommended Posts

Hey guys,

I'm using parse_str on some text. My only problem is their is a few something= that are the same...

Account=test
Account=test2

The line in the php is

parse_str($test, $output);

So, will it make $output['Account'] and then just add a number or something to it for each? I have tried a few different things, and nothing. I'm not sure if that will even do it. If anyone knows please let me know. I have to use the parse_str function cause their is only about 4 that repeat and about 150 that dont....

Thanks

Share this post


Link to post
Share on other sites
i don't think it will make arrays, unless you have Account[]=test and Account[]=test2 something like that.. is it possible for you to add the brackets after Account?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.