Today, i came across a handy PHP function which will convert the string in to array based on regular expression. i.e preg_split().
Implementation:
Implementation:
$test = "Hi, my blog name sureshdotariya"; $result = preg_split('/[\s,]+/',$test,-1,PREG_SPLIT_NO_EMPTY);