2015-10-09 3 views

Répondre

1

est un exemple:

$tweet = "this has a #hashtag a #badhash-tag and a #goodhash_tag"; 

preg_match_all("/(#\w+)/", $tweet, $matches); 

var_dump($matches); 
+0

Pourquoi utilisez-vous un groupe de capture? –

+0

@VERYNET merci l'homme ... réponse super rapide –

+0

@RameezRami aucun problème juste mis la question comme résolue maintenant – VERYNET