The extract variable feature can create a local variable to replace all occurrences of a given expression.
| 
                     
  | 
                
                     
  | 
            
| 
                     
                          | 
                
                     To create a new variable from an expression: 
 
                         Extract Local Variable dialog 
 
                         Extract Local Variable Preview dialog 
  | 
            
| 
                     The variable will be extracted and the relevant changes made to the code.  | 
            |
| 
                     
  | 
                
                     
  | 
            
| 
                     
                          | 
                
                     Related Links: Organizing Includes  | 
            
| 
                     
  | 
                
                     
  | 
            
©1999-2013 Zend Technologies LTD. All rights reserved.