Skip to main content
IBM  
Shop Support Downloads
IBM Home Products Consulting Industries News About IBM
IBM developerWorks : Web Architecture : Education - Tutorials
Writing efficient PHP
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
2. Writing efficient code
  


Eliminating redundant code page 8 of 15


When modifying existing code, be careful to remove any redundant code. For example, when I worked on code that several previous developers had modified, I found assignments to a variable that were always executed, but the resulting variable was never used. The problem is compounded if the variable is initialized by a call to a function, and the result is never used.


Main menuSection menuFeedbackPreviousNext
Privacy Legal Contact