On Jun 13, 2006, at 1:58 PM, tedd wrote:

At 11:33 AM -0700 6/13/06, sam wrote:
Wow this is hard I can't wait till I get the hang of it.

Capitalize the first letter of a word.

Try:

<?php
$word = "yikes";
$word[0]=strtoupper($word[0]);
echo($word);
?>


This blows my mind. What should one think, "everything is an array"? Well, okay not every but everything that's in linear consecutive order; anything that can be indexed?

I was trying to make an array from $word but explode() doesn't take an empty delimiter so I gave up and went for the preg_replace.


And hey yo, Jochem,
I did RTFM, for hours, I always do before I post to the list. I just missed all the answers in the fine manual this time. Cut me some slack.

Where should I wire the Euros to?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to