FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Find Strings (Tokens) in File and push them into an array - How?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Find Strings (Tokens) in File and push them into an array - How? [message #169556 is a reply to message #169537] Fri, 17 September 2010 19:34 Go to previous messageGo to previous message
aaaa is currently offline  aaaa
Messages: 7
Registered: September 2010
Karma:
Junior Member
Regular expressions are slow.

$file = file_get_contents('aaaaaa.txt'); //or whatever you got
$temp = explode(';', $file);
foreach ($temp AS $i=>$t)
{
$t = trim($t, ' ;__$');
if ($t == '') unset($temp[$i]);
}

//your array:
print_r($temp);
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Advanced SQL injection complete tool pack(tutorials,scanners,admin finder,shells,md5)
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 04:25:16 GMT 2024

Total time taken to generate the page: 0.06556 seconds