Hi guys recently I got stuck with PHP preg_match_all()
.
I'm really bad on REGEXP, I had to find:
var nx = (100000 + x) * 23452;
with preg_match_all()
, I do this:
preg_match_all('/var nx = (100000 + x) * (.*);/', $html, $token);
return $token[1][0];
I want output like this on my array:
23452
Please anyone help me, with explanation will be appreciate. Thanks.