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
Did you know?Explore Trending and Topic pages for more stories like this.
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

Echo multiple lines of html code
Hi guys,

I would like to know if there is a way to echo multiple lines of html codes.

using explode() to fill in checkboxes
Hi

I have a field stored in a table that contains regions in the UK separated by commas. Ther

extract data
Code: <div class="post hentry uncustomized-post-template">

Protecting forms
Alright, I want to protect some forms of mine from SQL Injections, because I had someone earlier spa

newbie question about multiple queries
hi everyone,
I'm sorry to ask such a basic question, but I'm young and trying to learn php on my

upload only text files
hi guys i want to upload only text like like (pdf,note pad and ofiice files) so can any one please t

form variables from database help.
Hi all,

I would like to have a form that gives you options based on the results of an mysql q

split string
Hi all

i have some names (imploded by comma):
Code: toronto,paris,madrid
Now, i would

what business processes?
Hi,

A general question. What business processes (like OTC - Order to Cach, P2P, R2R etc)

frame help
on the bottom frame is menu.html

Code: <body><form action='link.php' met

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