jmcc Posted July 9, 2010 Share Posted July 9, 2010 would this work? $num = explode(",",file($file); foreach($num as $msisdn){ echo $msisdn } Thanks Jay Quote Link to comment Share on other sites More sharing options...
Mchl Posted July 9, 2010 Share Posted July 9, 2010 No. It will result in syntax error. Quote Link to comment Share on other sites More sharing options...
jmcc Posted July 9, 2010 Author Share Posted July 9, 2010 Saw I left out a ")" How do I read csv's from a file? $num = explode(",",file($file)); foreach($num as $msisdn){ echo $msisdn } Thanks Jay Quote Link to comment Share on other sites More sharing options...
Mchl Posted July 9, 2010 Share Posted July 9, 2010 Saw I left out a ")" and also a ; How do I read csv's from a file? You use fgetcsv Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.