Web server - 594Part IIIAdvanced Features and TechniquesFigure 32-3:The Zend IDEAvoiding
594Part IIIAdvanced Features and TechniquesFigure 32-3:The Zend IDEAvoiding errors in the first placeBecause they re designed for creating PHP software, full-featured IDEs tend to keep you frommaking certain kinds of errors in the first place. For example, because they offer syntax highlighting (which causes, say, function names to berendered in black, literal values to appear in green, and variable names to show up in maroon), IDEs make it easier to catch dumb typographical errors. If you see that a function s argument which is supposed to be a variable and therefore rendered in maroon is in fact black, youknow you ve mistyped the variable name (perhaps by forgetting the $character). You getused to the patterns of colors, and it s obvious when a mistake has caused a disturbance inthe pattern. In addition, IDEs often feature code completion. Code completion presents you with a list oflegal options perhaps function names, or names of already-declared variables that couldgo at the point at which you re typing. For example, Zend Development Environment will notice if you begin a new line of code withstr. It will show you a list of all functions that start that way str_pad(), str_repeat(), str_replace(), and so on and allow you to choose one by pointing and clicking with your mouse. This eliminates one possible source of errors, in that you can t misspell the function name.
Searching for affordable and reliable webhost to host and run your web applications? Go to our java web server services and you will be pleased.