All,
I'm trying to insert a last name into a database. I'd like the first letter to be capitalized for the name and if they have use two last names then capitalize the first and second names. So for example …
Suppose you have this string:
hiThere
What is the fastest way to find where the first upper case character is? (T in this example)
I am worried about performance as some words are quite long.
Consider:
$a = 'How are you?';
if ($a contains 'are')
echo 'true';
Suppose I have the code above, what is the correct way to write the statement if ($a contains 'are')?