March 30, 2008
Moving complex php if statements into ternary statement syntax is not always recommended, but I think it can look quite neat and easily readable. Ternary statements compress your code and using nested ternary statements sparingly in certain situations makes a mess of nested if statements far easier to scan when converted to a nested ternary. [...]
March 9, 2008
Validating language specific characters in user input can be a bit of a pain, especially if you are using regular expressions to filter user submitted data. Not only that, but testing your methods can also be a pain – firstly you will need some shortcuts for entering UTF-8/Unicode chars into form inputs if you are [...]
for tips on PHP and web development