I am trying to use classes in php. I need to extend some old scripts I wrote, and I think it will be easiest if I create classes. One of the old variables I had was $item-id The actual value of the id would bat cat - number, and so I liked having the "-" in the name to remind me of that. I get a parse error on the line saying var $item-id; saying it was expecting a semi colon (basically it doens't like the -). Does anyone have any suggestions on getting this to work? I could just remove the - in the variable name, but that would require a lot of changing code.
Thanks,
William