I have an array called $data which I got from parsing a file. When I do print_r ($data) I get...
Array
(
[0] => ('010907', '010907', 'Illness ')
[1] => ('010807', '010907', 'Professional Leave ')
[2] => ('010807', '010907', 'Professional Leave ')
[3] => ('010807', '010807', 'Sick Leave ')
[4] => ('010807', '010807', 'Illness ')
[5] => ('010807', '010807', 'Sick Leave ')
[6] => ('011007', '011007', 'Professional Leave ')
[7] => ('011107', '011107', 'Professional Leave ')
.....
)
Now, I need to be able to go through that array and change 'Illness' to '1' and 'Professional Leave' to '2' and 'Sick Leave' to '3', etc.
So my question is, now that I have this broken down into an array, how do I go in and manipulate the values in the array???
Thanks in advance.