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

Forms Authentication and Refresh at Login page
Hello, When I try to press the Login button in my webapplication at my login.aspx page nothing h

Login logout link help
Hi all,

Im new to php and Im having trouble creating a login/logout link for my page that dis

Combining Two Queries
I have two scripts that each work fine by themselves. One is a search script with a variable that de

ImageCreate()
When I create an image and add text to it I want my text to be replaced with a PNG image, because th

Php navigation
I have four buttons on a php page.
If i click a button it will redirect to different php pages.

MySQL query problem
When I try to run the following piece of code, I get this error:
QuoteWarning: mysql_query(): sup

Help on code output
My CODE:

Code: [Select] echo "<phone>".$line["phone"].&qu

array ...
hi
Code: function formatCategories($categories, $parentId)
{
// $navCat stores all child

An odd assignment statement. Can someone explain this assignment to me?
What purpose is served by the bit of code between the two equal signs in the $installurl set? Is th

Socket problem
Hello,

Earlier I posted about my problem with my socket script. It took up to 100% CPU usage.

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