explode CSV file : CSV : Development PHP Source Code


PHP Source Code » Development » CSV »

 

explode CSV file




<?php
   $users = file("./demoCSV.csv");
   foreach ($users as $user) {
      list($name, $email, $phone= explode(",", $user);
      echo "<p>$name ($email) Tel. $phone</p>";
   }
?>
<!--
A,a@example.com,11111
B,b@example.com,22222


-->
           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Development
» CSV