str_getcsv()

It parse a CSV string into an array

Example

<?php
echo “<pre>”;
print_r(str_getcsv(“php,code”));
?>

Output

fiArray
(
[0] => php
[1] => code
)

Share