Comment on \d less efficient than [0-9]parentComments−damncabbage13yDitto PHP: php > var_export(preg_match("/\d/", "1")); 1 php > var_export(preg_match("/\d/", "۳")); 0−jpiasetz13yAdd /u php > var_export(preg_match("/\d/u", "۳"));
Comments
Ditto PHP:
Add /u