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

A rank users order by points
I want to make an insert from table 'rank' , with number (rank) from the cod blow, to fild users.ran

user data not transferring to new page
I'm a PHP learner. After an index.php page, the user goes to a login.php page. Both pages seem to

New Login Script
Hi all, i attempted to create a whole new login script witch isnt working for some reason i dont kno

Help: problem with Headers to download PDF file
Hi,

I'm trying to implement a script where when a user clicks a link he gets a PDF file to op

Share admin accross websites
I'm using .net memberships and roles in one of my sites, but I need to be able to share logins and p

TemplatePower & AJAX
Hi all,



I'm currently implementing some AJAX features in my PHP-framework (which is b

Upload file and add HTML
Hey everyone,

I have a client has meeting agendas and minutes that should be posted online. I

Putting double spaces instead of single spaces
Im looking at trying to replace all single spacing between fields with double spacing

At pres

Drawing Images in classes
I'm quite new to Object Oriented PHP. What I'm trying to do is draw some images but also have other

PHP arrays into arrays need help
Hello
I am trying to highlight the days on my calendar based on the dates that i have in my datab

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