How to check first letter in array
For example:
$name = ("Peter","Jeff","Scott");
I want to print the name that begins with letter "P" on the screen.
THank you.
Do you want the first element of an array?
$name = array("Peter","Jeff","Scott"); echo $name[0];
If you wanted the first letter of the first element...
$name = array("Peter","Jeff","Scott"); echo $name[0]{0};
No... I want php to search the name in array that begins with later P or J or S...
THank you
Thank you. I've got it...