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

Recording popularity by day, week.. all time?
Hey everyone, I'm creating a site designed around users uploading music. How can I implement a syste

upload image name with extension using php
hi frds..

<input id="file1" type="file" name="file[]" &a

Run function every 5 mins ??
I have a function PostMessage()

How can I run it every 5 mins ??

How to use php and sql to check if values match the ones in a table (for logins)
How would I code it that the script takes two variables that are passed to it (UserID and PIN), and

php or sql?
Sorry not sure if this is a sql problem or php the following code is supposed to delete data from th

WELCOME SCREEN
first of all let me tell you what does my script do,

it´s a very simple query to show a e

no idea what to do...
I'm fed up. I had issues with code that I have working on a different site that didn't work on my cu

Namespace Problem
I'm having problem with a section of code with a variable namespace.

This code works fine:

mysql timestamp manipulation
How could I use a timestamp (e.g 2009-10-30 13:20:35 ), and with php find out if it is:

from

Call to undefined function mysql_fetch_accoc()
New to php/mysql coding. What's wrong with this sequence, or am I
just not seeing to obvious?

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