Category Archives: WTF

Extended ASCII characters are valid php variable names

A curiosity… I was looking on the website for what qualifies as a valid PHP class name, which they qualify as: A valid class name starts with a letter or underscore, followed by any number of letters, numbers, or underscores. came across this statement Source PHP reference page But they then add the following: As a regular expression, it would be expressed thus: [a-zA-Z\x7f-\xff][a-zA-Z0-9\x7f-\xff]* \x7f-\xff … really? (\x7f-\xff is the extended ascii character set)…

Read More