View Single Post
Old 07-09-2007, 07:53 PM   #2 (permalink)
stewart
Contributing Member
 
stewart's Avatar
 
Join Date: 02-09-07
Location: New Orleans, LA
Posts: 171
iTrader: 0 / 0%
Latest Blog:
None

stewart is liked by many
Send a message via ICQ to stewart Send a message via AIM to stewart Send a message via MSN to stewart
Code:
<?php $file = implode('', file('mylist.txt')); for($i = 0; $i < strlen($file); $i++) { if($file[$i] == "b"){ die("for good."); } } ?>
That does what you are asking, but what are you trying to accomplish, just wondering ?

http://www.php.net/file
http://www.php.net/strlen
http://www.php.net/implode

Good luck,
- Stewart
link removed
__________________
stewart:howe
Web Developer & Programmer

www.CelerMedia.com

Last edited by chicgeek : 07-09-2007 at 08:42 PM.
stewart is offline   Reply With Quote