Posts: 2,314
Name: Keith Marshall
Location: West Hartford, CT
|
Quote:
Originally Posted by maxxximus
Not quite right 
First letter would be 0
$firstLetter=$string[0];
|
To yet add another insight, I think $firstLetter = $string{0}; would be a better choice since $string is not an array (I think the square brackets may issue a warning if I'm correct).
__________________
<mgraphic /> - I don't have a solution but I admire the problem.
|