samedi 28 février 2015

php remove string: fa fa-phone famouse

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.


Aucun commentaire:

Enregistrer un commentaire