Hey,
I need some help parsing some text and turning it into some array values...
Basically I will have some text like this:
CRITICAL 3-501.16(A)* PHF Hot Holding->140°F
Or like this:
5-501.17 Receptacle in women's toilet room coveredCRITICAL 3-302.11(A)(1)(a)* Separation-Raw & raw RTE
I need to parse out the data into an array... so for the second example, I need an array similar to this:
$array = array(
array("5-501.17","","Receptacle in women's toilet room covered"),
array("3-302.11","CRITICAL","Separation-Raw & raw RTE ")
);
array[0] needes to be the number value... [1] needs to be either true/false if critical exists right before the number value, or just write out CRITICAL if it exiists... and [2] needs to be the text description after the number value...
Also, there can be one or more numbers with descriptions in the text string...
Could anyone please help me out with this?
thanks!!!
ps: one more exa,ple just so you can get an idea of the varioustext strings i have to deal with:
CRITICAL 3-501.16(A)* PHF Hot Holding->140°F CRITICAL 3-501.16(C)* PHF Cold Holding-41-45°F