Php trim

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sanjana
Forum Newbie
Posts: 1
Joined: Mon Mar 14, 2011 10:29 pm

Php trim

Post by sanjana »

Hello.

I am a final year student and i urgently need your help.
I am actually implementing an email client in PHP and i need to read the subject of the email.
If the subject of the email contains the words Important, Urgent or Critical, then the emails are downloaded otherwise they will be downloaded once the user is free.
The part for downloading the email is done. I need the coding for the trim part only.

Any suggestion or any help for the coding will be greatly appreciated.

Thanks.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Php trim

Post by Christopher »

What do you mean "trim?" There is a trim() function in PHP. Or do you want to know how to find the words "Important, Urgent or Critical" in the subject? (preg_match())
(#10850)
Post Reply