Icy Phoenix

     
 

PHP Help Please, Removing Characters From A String

PHP Help Please, Removing Characters From A String

Article
Reply with quote    Download Post  
Post PHP Help Please, Removing Characters From A String 
 
Hi Guys

I have a string eg

"
19/07 07:54  BORDERS : Red-backed Shrike, St. Abbs Head NNR  [R]
male at the lighthouse garden and showing well yesterday afternoon (18/07)

19/07 07:56  ABERDEENSHIRE : Grey Phalarope, Loch of Strathbeg RSPB  [R]
no sign at Starnafin Farm but adult Mediterranean Gull, 6 Little Gulls, Ruff and 30+ Great Skuas north

19/07 07:58  ANGUS & DUNDEE : Ruddy Shelduck, Montrose Basin  [R]
two still at The Lurgies; also 2 Green Sandpipers and 10 Greenshank (18/07)



I want to remove the areas in RED, how can i do it



What i have is a script that watches for an email and breaks the message part ready for uploading to an mysql database for displaying on a website. it works but the bits in red i want to strip out

Any ideas how using PHP i can remove these areas in the large string ?

regards



 
Last edited by AndyGpy on Sun 19 Jul, 2009 22:34; edited 1 time in total 
AndyGpy - View user's profile Send private message  
AndyGpy [ Sun 19 Jul, 2009 22:22 ]
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us


PHP Help Please, Removing Characters From A String

Comments
Reply with quote    Download Post  
Post Re: PHP Help Please, Removing Characters From A String 
 
Topic moved.



 
buldo - View user's profile Send private message  
buldo [ Sun 19 Jul, 2009 22:31 ]
Reply with quote    Download Post  
Post Re: PHP Help Please, Removing Characters From A String 
 
Use str_replace function:

http://it.php.net/manual/en/function.str-replace.php

Or





 
Mighty Gorgon - View user's profile Send private message  
Mighty Gorgon [ Wed 22 Jul, 2009 12:41 ]
Display posts from previous:    

HideWas this topic useful?

Post new topic  Reply to topic  Page 1 of 1
 
 




 


 

  cron