I use php programming for get information from txt file like this:
< n >1< /n >< fr >2,3,4,5,6,7,8< /fr >< fo >9,10,11,12< /fo >
between tag < n >
I can get number 1 by using preg_match
$users = preg_match_all("/<".$tag.">[^<]*(.*?)<\/$tag>/si", $content, $matches,PREG_PATTERN_ORDER);
so the data is stored in $user[0] right?
when I convert $user[0] to integer, it turns to 0 !!!
Could you please help me fix this
I want to convert this and insert into database