Hi all, have just bought Larry's book PHP for the Web Visual Quickstart Guide 4th Ed and have been struggling with the following:
- How do I convert every other word in a string so that it is emphasized?
I have tried the explode PHP function and using the FOR loop with it but it outputs only every second word.
What is needed eg is:
This is every other word that is emphasized.
Any help would be greatly appreciated.