Tutorial Convert Comma Separated String into Array

by in , 0

Easy way to turn a CSV file into a parseable array.

<?php
$str="foo,bar,baz,bat";
$arr=explode(",",$str);
// print_r($arr);
?>

Leave a Reply