Code Snippet
Convert Comma Separated String into Array
Easy way to turn a CSV file into a parseable array.
<?php
$str="foo,bar,baz,bat";
$arr=explode(",",$str);
// print_r($arr);
?>
Easy way to turn a CSV file into a parseable array.
<?php
$str="foo,bar,baz,bat";
$arr=explode(",",$str);
// print_r($arr);
?>
Is there a way to take a comma separated string like say:
Tags: Something, somethingelse, thirdsomethingintoTags:
Something
Somethingelse
thirdsomething
Perhaps by wrapping this code
Tags: Something, somethingelse, thirdsomethingin some kind of div? Is this possible?Thank you very much,