Comparison operator

string(5) “>=” concerns me. It should be string(2) should it not? This feels like you’re actually getting &gt;= instead of >=. If you are doing a var_dump into the basic HTML body, it will encode what you see. View Source or wrap your var_dump in a <pre> tag, and you should see what’s up. Try … Read more

Comparing chars in Java

If your input is a character and the characters you are checking against are mostly consecutive you could try this: However if your input is a string a more compact approach (but slower) is to use a regular expression with a character class: If you have a character you’ll first need to convert it to … Read more