Re: error/confusion with translate function
How embarrassing! And to think that I actually did recite the alphabet for both lists, but somehow overlooked this error. Thank you (and others) for setting me straight.
Easily done :-)
FWIW, a while back I came across an interesting variation on typing the alphabet for use in translate(): type the keyboard layout instead, thus:
translate($string, 'QWERTYUIOPASDFGHJKLZXCVBNM', 'qwertyuiopasdfghjklzxcvbnm')
It's much easier to type (for a non-touch-typist like me, anyway) and that, to my mind, makes it less susceptible to the kind of slip you made in your code.
(Of course, the French will want "AZERTY..." instead.)
Nick. -- Nick Fitzsimons http://www.nickfitz.co.uk/
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format