Associate
hey guys bit of a pickle here.
i have example text that i get from a text box from a user and looking at the best way to split them up using the least amount of code possible.
i have a php class that stores
number of rooms [1,2....10]
type [rent/let or sale]
area [the area it's in]
price [the price]
here are some example searches.
* 5 bed rent
* Camden 3 bedroom for sale
* 2 bed apartment to let London
* 3 or 4 bed house to rent in Notting Hill for 1000 per month
what's the best way to extract the data using php with out me knowing what way the user will enter the data.
this is for a progamming test so it doesn't have to be 100% functional.
thanks.
i have example text that i get from a text box from a user and looking at the best way to split them up using the least amount of code possible.
i have a php class that stores
number of rooms [1,2....10]
type [rent/let or sale]
area [the area it's in]
price [the price]
here are some example searches.
* 5 bed rent
* Camden 3 bedroom for sale
* 2 bed apartment to let London
* 3 or 4 bed house to rent in Notting Hill for 1000 per month
what's the best way to extract the data using php with out me knowing what way the user will enter the data.
this is for a progamming test so it doesn't have to be 100% functional.
thanks.