I have inherited a web site that was designed in php and perl. the code was poorly designed but it has evolved into a very complex system. I am thinking about refactoring the code to make it more readable and more efficient because there is a lot of redundancy and few functions and absolutely no classes.
so I have never coded in ohp and I was wondering if there wi ll be a performance hit if I use classes and storing objects in session variable. the code currwntly has parts that has multiple uses of 4 to 5 dimensional arrays and this procedure gets called. every page they turn to. I was thi nking about using some classes that hold the information instead of multi dimensional arrays. how will this affect performance? would it decrease performance or increase performance? any tips on managing php performance... thanks :)