Posted by comp.lang.php on 03/13/06 23:00
NC wrote:
> comp.lang.php wrote:
> >
> > This is a PHP function that utilizes a prior-written TCL proc I wrote
> > that converts a name to proper case..
>
> And you are not using ucwords() because...
>
> > What in the world am I doing wrong?
>
> Not using ucwords(), of course... :) Check it out:
>
> http://www.php.net/ucwords
print_r(ucwords('rue de la paix')); // = "Rue De La Paix" which is
wrong, should be "Rue de la Paix"
My TCL proc does this:
puts [PROPER_CASE {rue de la paix}]; # PRINTS "Rue de la Paix"
That's why I want to use my TCL proc and not even ucwords()
Phil
>
> Cheers,
> NC
Navigation:
[Reply to this message]
|