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

Problem!
I have another problem, when i run this code i get this error "Parse error: syntax error, unexp

array_combine() error
getting an "Warning: array_combine() [function.array-combine]: Both parameters should have an e

Setting condidtions for an input box
Hi all,

I would like to set a condition in a txt box that says the number a user enters has t

need help with this contact form
I made this form and I need it to read the data and write the data to a table and its not working ca

Delete Client 066 Earlywatch
Hi all,

in former times client earlywatch was required for SAPs remote access to SAP inst

moving mouse to display image coordinates
I have an existing MFC application that shows an image in the main window.
I'd like to be able to

post to self
Trying to get my form to submit to itself. However I am also trying to use an image for my submit bu

Problems with strings containing
Hey all,

I have encountered something strange in a script. I am trying to write an XML heade

Snapshot from video
anyone knw how to make a snapshot maker from avi n mkv format.
for example if i give a direct lin

getting rid of quotes in strings
sick of trying to deal with them in multiple ways (entering in and taking from database, echoing, ec

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