Link to home
Start Free TrialLog in
Avatar of spoggles
spoggles

asked on

PHP string replace

Hello experts!

I want to use php to convert the below string from Before to After. The problem is that the below string is not always the same information. However, the information will always come in the same format. Is there an easy way with str_replace to do this?

BEFORE:
Photo name: ___________________ Open House Jane White BOONE county zionsville 1428 DOMINION DR 2-5 $184,900 3 Bedrooms / 2 Full,  Half Baths 846-7751 (Condominium) - 21106026 Special Financing:  

AFTER:
4/17/2011,2-5,21106026, Jane White
SOLUTION
Avatar of 4e4en
4e4en
Flag of Latvia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of spoggles
spoggles

ASKER

Thank you experts. This gave me exactly what I needed to parse the file.