mardi 22 mai 2018

Matching Url with fnmatch and Patterns

I want to match the Following URLS to

http://deploy.local/user/12 => fnmatch(PATTERN???, $url);
http://deploy.local/user/tree => fnmatch(PATTERN???, $url);

But

fnmatch("user/[0-9]+" , $url);

does not work with these..

Any Suggestions ?

Aucun commentaire:

Enregistrer un commentaire