tailieunhanh - PHP Developer's Dictionary- P14
PHP Developer's Dictionary- P14:PHP is an open source, server-side, HTML-embedded scripting language used to create dynamically generated Web pages. With an easy-to-use syntax and a large, extensible library of modules, PHP brings together the best of Perl, C++, and other languages. | PHP Developer s Dictionary must appear on only one line and after the indicator. Here is a quick example of using this method of commenting C Java and JavaScript programmers should understand how this method works in the PHP programming language. . Syntax comment Description The . PHP element is another method of defining a comment in the PHP language. This method enables you to write comments that span multiple lines so you can format your comments without using multiple instances. Be careful when using this syntax and avoid nesting any comments. Here is a quick example of using this method of commenting Title Understanding comments Description In your comments you may wish to have comments that span more than one line. If so this is the method you should use. Syntax comment Description The PHP element which is commonly referred to as a UNIX shell-style comment enables programmers to include one-line comments in their code. This particular style is the same as the one seen in UNIX shells and likewise comment must appear on only one line and after the indicator. Here is a quick example of using this method of commenting IT-SC book 65 PHP Developer s Dictionary You Perl programmers should understand how this method works in the PHP programming language. Constants Constants are a way for a programmer to define constant values for variables by using the define method at runtime. The difference between these variables and other variables that you might have in your code is that these cannot be changed. In this section of the book we look at several predefined PHP constants that reflect the environment in which the PHP interpreter is running. __FILE Syntax __FILE_ Description Thefile__constant reflects the name of the current file being parsed by the PHP interpreter. __LINE Syntax __LINE__ Description The __LINE__ constant reflects the line number of the current file being parsed by the PHP interpreter. E_ERROR Syntax E_ERROR Description IT-SC book 66 PHP .
đang nạp các trang xem trước