Jump to content


Photo

Problems with parse_str


  • Please log in to reply
2 replies to this topic

#1 grazzman

grazzman
  • Members
  • PipPip
  • Member
  • 27 posts

Posted 26 July 2006 - 06:11 PM

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

#2 ryanlwh

ryanlwh
  • Staff Alumni
  • Advanced Member
  • 511 posts

Posted 26 July 2006 - 06:21 PM

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?
Please use EDIT * 100...
Please use
or [php] * 1000...

PLEASE READ THE POSTED SOLUTIONS CAREFULLY * 1000000...

#3 grazzman

grazzman
  • Members
  • PipPip
  • Member
  • 27 posts

Posted 26 July 2006 - 06:25 PM

Yea, just need to do some fun replace arrays... :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users