Joined January 2013
·
Posted to
[PHP] String Length, The Right Way
over 1 year
ago
Working on a full UTF-8 'environment' should not give encoding issues, so using always mb_strlen can be the simplest and faster approach.
Nice trick with isset() anyway.
Achievements
90 Karma
18,099 Total ProTip Views

Nephila Komaci
Have at least one original repos where PHP is the dominant language

Charity
Fork and commit to someone's open source project in need
Nice solution, although it seems to me it doesn't prevent user interaction on objects behind the outline (ie click on anchors is still allowed).