nirvana43
10-02-2009, 10:43 AM
Hello
I'm coding a mod for vb
I'm having problem with parse_str() function in following code block :
foreach ($matched as $urls => $names)
{
parse_str($urls);
$temp=$ac;
//*****And then i'm printing values of $temp*********//
}
$urls contains following string data :
/sent?r345dfd32s&link=general&ac=3245534893783&status=waiting
I wanna store only numbers under "ac" in some string variable.
However, above code snippet results no data (blank) in $temp.
Is it because parse_str() is used within foreach() loop?
(I have to use it in foreach() because $urls contains different links everytime. Or is there any other way?)
If i remove foreach() loop then code works perfect.
Can any1 please help me with this??
You will get full credit in mod for solving this issue.
I'm coding a mod for vb
I'm having problem with parse_str() function in following code block :
foreach ($matched as $urls => $names)
{
parse_str($urls);
$temp=$ac;
//*****And then i'm printing values of $temp*********//
}
$urls contains following string data :
/sent?r345dfd32s&link=general&ac=3245534893783&status=waiting
I wanna store only numbers under "ac" in some string variable.
However, above code snippet results no data (blank) in $temp.
Is it because parse_str() is used within foreach() loop?
(I have to use it in foreach() because $urls contains different links everytime. Or is there any other way?)
If i remove foreach() loop then code works perfect.
Can any1 please help me with this??
You will get full credit in mod for solving this issue.