Get word number x from string?


Posted on 16th Feb 2014 07:03 pm by admin

How can I use a function to loop through a string, and "have a look at" every word in the string, probably separated by a comma, and print them out, like this:

word 1: xxxx
word 2: xxxx
word 3: xxxx

etc, and loop till it has finished?

No comments posted yet

Your Answer:

Login to answer
288 Like 31 Dislike
Previous forums Next forums
Other forums

Session
I am having a little trouble with a session. Not sure if it is my browser or what. I know I do not

Writing to the middle of a file
Hi I have a bit of a problem. Is there any way i can write some text to a middle of a text file. For

Comparing two dates
Hi Guys
I have two dates I want to compare. Below is my current implementation. The problem with

Can you help please? Php file
I have to write this php file to allow users to register their nicknames on nickserv

For an I

displaying unknown amount of results
I am reading a directory and getting a list of folders in the directory, I want to display the folde

text box alphanumeric caracters only
hi all!

I have search on google on how to enter in a test box only caracters A-Z,a-z,0-9 usi

User registration and login
I don't know whether this is the correct forum, if not i apologise but am pretty desperate at the mo

SMTP server...
I recently found a tutorial online on SMTP authentification for sending emails from webpages, here i

fwrite error
Hi All,
Does anyone know what is causing the error in this code?

Code: <?
$error

check_changed_data - I can't get data from the called method event
I use check_changed_data to trigger my event method.

The method delivers er_changed_data.

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash