[php]
$aJob = $element2->nodeValue;
echo $aJob.’
’;
$words_aJob = explode(’ ‘, $aJob);
echo count($words_aJob).’
’;
[/php]
the output of $aJob is a sentence I expect to see. The count of $words_aJob is something ridiculous like 150 when there’s only 46 characters in the entire sentence.
All I’m trying to do is display the sentence if it has a certain word at the end.