Suppose I have the string:
"every good boy does fine"
. . . and I only want to get the first word "every" from the string.
What's the easiest way to do this? I assume you would need to check for the first white space character, find its string position, and then do a substr() or something on the string?
Or does PHP have a more direct way of doing this?
Sorry for my ignorance, but I don't want to spend half a day "rolling my own" function and then testing if there's something in the library that already does this.
Thanks.