I've got the following code:
if (preg_match('/fl=(.*)&/', $resp, $matches)) {
$temp=$matches[0];
$fl= str_replace("fl=", '',$temp);
}
I want to get the text from $resp
that is after fl=
and before the next &
The problem I am having is that it ignores the first few &'s
.
The output I'm currently getting is Email&errorType=format&"
what i want is Email