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

Inserting the current date/time while submitting the forum
What do I need to add below to update the current date/time? I have a field in the database called d

downloading a file as HTML
Hi.
I'm rather confused with forcing a download. I just want to save dynamic content (from $_SESS

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

Update Database
Hi All,


I have a problem with this:

Code: [Select]<?php
session_start();

Losing 'page' data
I have this code that allows me to update my database. But after updating, I lose the $_GET['page']

Secure FTP
Hi experts,
There is no SFTP action in MII workbench.
This means it needs developing custo

help, header() is not working!
Hello, I have this code:


<?php

/**
* @author samoi
* @copyright 200

How to add advertisment on top of videos
Hello,
I was told that i should find the answer for this problem in this forums.
I searched a

limit string by words??
hello all,

I was wonder if there is a function to limit a string by the number of words inste

pass form variables straight to email, no database required?
hello all,

im working on this form...

http://www.adobedayevents.com/project_request/pr

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