I want to remove the strings fa and fa-phone of the string: "fa famouse fa-phone".
I tried:
preg_replace('/fa.+$/','', 'fa famouse fa-phone');
But now it removes all strings with fa.
fa
Aucun commentaire:
Enregistrer un commentaire