Create an array of elements from text between # tag


Aug 13, 2014    Janaki Mahapatra, PHP

preg_match_all('/#(.*?)\#/s', $text, $matches);
print_r($matches);
Ex: janaki #ranjan# mahapatra #my name# Output: array[0=>ranjan,1=>myname];