Convertire din string in array

postat acum 4 luni de Stefanescu Mihai in categorie Snippets
$string = "foo,bar,baz,bat";
$array = explode(",",$string);

 

Sunt un tanar programator din Bucuresti ce lucreaza in PHP/Mysql (MySqli/PDO), Laravel, CodeIgniter, MySQL, PostgreSQL, Wordpress, HTML5/CSS3, Sass, Photoshop si multe altele.
Google+ Community Facebook Group