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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER