I thought if I had this string
$joe = "why am I here";
and I did :
$a = getWord($joe, getWordCount($joe));
$a would equal "here".
But for some reason when I echo it, it's blank.
however echo(getWordCount($joe)); results in "4"
So why can't I do this, and if not, how do I get the last word of a string? there's firstWord() and restWords() but how would i get the last word?