Convert Comma with String into php

By | February 16, 2015

Convert Comma with String into php


Easy way to turn a comma and other sign with String in php.
use this php predefined function and enjoy.

 <?php   
 $str="code,fewer,php,blog";  
 $arr=explode(",",$str);  
 // print_r($arr);  
 ?&gt;  
 ?>  

Thanks

Category: PHP

Leave a Reply

Your email address will not be published. Required fields are marked *