Word Trimming


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

Hi Guys & Gals!!

Hope you are all ok....

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

Random Number Generation And Probability
Hello, I am working on a function which has to insert data into a SQL table.

we have to suppl

IS Retail & Manufacturing
Hi

Can IS Retail and Manufacturing activities be done in same instance ie. in same client

validating url
im trying to validate url's sent to me by a form
the url's im collecting are for placing banners

Regular expression tips or resources
Hello! I'm having some issues implementing the appropriate regex patter to eliminate unwanted charac

Users and Groups with PHP Classes
Hi,

I have setup what I hope to be a good working User class. Now I want to introduce group m

upgrade from 4.7 to ECC 6.0
Hi all,
we are going to do an upgrade from R/3 4.7 to ECC 6.0. I need to know if i can find som

Mass activity scheduling
Hi experts,

Im facing some problems to deal with mass activity jobs.
When I run some

HeaderSelectedCssClass not working
I have an accordian where I have a drop down list in the first pane and a grid in the second pane.

Multi Dimensional Array Append
Hi Guys

I have a function that returns a multidimentional array eg

$result = functio

How many users online in the last 24-hours using time()?
I'm fairly new to PHP. I have a MySQL table called 'users' and a field called 'loggedin' which is in

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