Getting a single character in a string
This snippet of code will show how to get individual character from a string in a variable
$sMyName = “Darwin”;
print $sMyName[1]; // will print the letter “a”
This entry was posted
on Tuesday, October 9th, 2007 at 7:44 am and is filed under Strings.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.