[FX.php List] To data condition or not data condition. That is the question

Tim 'Webko' Booth tim at nicheit.com.au
Sun Dec 6 13:07:18 MST 2009


On 06/12/2009, at 11:14 PM, Gjermund Gusland Thorsen wrote:

> If you are to make proper() on names you would probably have to make
> exceptions...
>
> McDuck
>
> case( left( $lastname; 2 ) = "mc" ; proper( left( $lastname; 2 ) ) &
> proper( middle( $lastname; 3; -1 ) );
> /* misc other exceptions */
> proper( $lastname )

One of my cricket team mates is a Mclaine and gets very annoyed when  
his name gets propered like above...

Cheers

Webko



More information about the FX.php_List mailing list