mardi 10 juillet 2018

pattern matching in php [duplicate]

This question already has an answer here:

I have a string in php in the form of $u="abc 145-9(23 Oj)" I have to extract the number just after the opening parenthesis. I have tried using preg_split() but I don't know how to give the pattern to match my requirements.

Aucun commentaire:

Enregistrer un commentaire