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

how can i expire the submitted page using session.
hi,
i'm new to php world.
i'm using "post" method.
when i submit it,data goes to

registration form
first time posting. did some searches but didnt find exactly what i am looking for. dont flame cause

help me fix these syntax errors...
I keep getting multiple syntax errors on this script like this one:

Parse error: syntax error

data type in column definition
Hi,
I create a table with column called "Direction of Travel code ".
The travel codes in t

mysql timestamp manipulation
How could I use a timestamp (e.g 2009-10-30 13:20:35 ), and with php find out if it is:

from

Inserting a variable in a link
I have this code that I want to insert for my own variable but I have no idea how. This is what I wa

php forms and database navigatio
Hello,
I'm new to php and i'd like to post the following.
I have written code to get records f

date("now") prints out wrong date ?
Hi Guys
Anyone know why and how I can fix it ?

I would like "for" to wait 5 sec
I would like my 'for' loop to wait 5 sec before second iteration.


for ($i=0; $i<10

Display certain image depending on time of year
Hi, I am new to these forums and would really appreciate some advice on a piece of coding I have don

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