Pb de string
thedrazik
-
thedrazik -
thedrazik -
Salut,
Pourriez vous me dire comment extraire un nombre d'une string ?
ex : obtenir "19" à partir de "hfhdsfh19dfsdf".
J'essaye avec ereg("^[:digit:]+$",$string,$resultat) mais je comprends pas pkoi ca renvoie rien.
Si qqun peut m'aider.... merci bcp!
Pourriez vous me dire comment extraire un nombre d'une string ?
ex : obtenir "19" à partir de "hfhdsfh19dfsdf".
J'essaye avec ereg("^[:digit:]+$",$string,$resultat) mais je comprends pas pkoi ca renvoie rien.
Si qqun peut m'aider.... merci bcp!