Word Trimming


Posted on 16th Feb 2014 07:03 pm by admin

Hi Guys & Gals!!

Hope you are all ok....

Did you know?Explore Trending and Topic pages for more stories like this.
I need some help with the following

I need to trim the following word as follows:

$word = 'James Bond';

output would be 'James B'

There is a space between all of the words I need to trim...

Any suggestion??

Thanks in advance..
No comments posted yet

Your Answer:

Login to answer
216 Like 31 Dislike
Previous forums Next forums
Other forums

MFC GUI Programming
I am working on a project right now that requires me to create a MFC Windows GUI. Basically it need

why preg_match_all does not return the number of matches
My regex looks like

X[^x{4e00}-x{9fa5}]*Y

(where X and Y are two Chinese characters)

Data storage spaces in varchar2
Trying to understand what's happening.
I am selecting a value from a table that is defined as c

ScriptManager History and Opera Issue
I am having an issue in opera with the ScriptManager. I have a ScriptManager on a page with history

Create a form of 2 numbers input and find the greatest.
Hi, everybody.

I have a homework in my training of php, which ask you to make a form that ask

Download Image from URL and Upload it
Ok, I have been googling for the last 1/2 hour trying to figure this out, Most likely I'm just not s

Keeping track of php uploads
Hello all.

I was looking at the way PHP handles file uploads.
It seems that PHP uses a tem

mysql select with $_get ?
Hi, i have this code:
Code: // If char id is 0 and character dont exist do:
if ($_GET["id

Get dump of MySQL DB from Live Site
I'm after an easy, but secure way of generating and importing a MySQL dump from a remote server.

Option box to change variable
Hello, i need help by making a script!

I need to write a file with option box, so a dropdown

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