- array_map: documentation ( source)
- var_export: documentation ( source)
- preg_split: documentation ( source)
<?php
var_export(array_map('trim',preg_split('/(#\S+)/','#now my time #Cairo travel #here',null,PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY)));