Well this will be hard to explain but I will try 🙂
So I am trying to get some info from two texts both with the same info but it is written in different ways.
Case 1:
text:
name=Jason Dixon
ald=18
ska=-1
for=4
Code:
preg_match_all('/ald=(.*)./i', $temp, $match);
$player_age = $match[1];
Case 2:
text:
name=Jason Dixon ald=18 ska=-1 for=4
Code:
The same as above but instead of that $player_age is "18" it will write everything after "ald=", why? Any suggestions? I am pretty new so if anyone can solve this please explain a little more than just the code 🙂
Thanks Rillo.