Advanced interpolation with cubic splines to get smooth curves from just a few data points.Automatic generation of client side image maps to make it possible to generate drill-down graphs.Web-friendly, average image size for a 300*200 image is around 2K and images are seldomly bigger than 4-5K.Further information about the features by following the links below. Assuming you have following content in test.The following is a shortlist of available features within the library. Yes you can run your PHP script on your command prompt. Print("Good - I haven't totally lost my mind.") The smallest building blocks of PHP are the indivisible tokens, such as numbers (3.14159), strings (.two.), variables ($two), constants (TRUE), and the special words that make up the syntax of PHP itself like if, else, while, for and so forth Braces make blocksĪlthough statements cannot be combined like expressions, you can always put a sequence of statements anywhere a statement can go by enclosing them in a set of curly braces. Here is a typical statement in PHP, which in this case assigns a string of characters to a variable called $greeting − Statements are expressions terminated by semicolonsĪ statement in PHP is any expression that is followed by a semicolon ( ).Any sequence of valid PHP statements that is enclosed by the PHP tags is a valid PHP program. Yeah it is true that PHP is a case sensitive language. PHP whitespace insensitive means that it almost never matters how many whitespace characters you have in a row.one whitespace character is the same as many such characters.įor example, each of the following PHP statements that assigns the sum of 2 + 2 to the variable $four is equivalent − Whitespace is the stuff you type that is typically invisible on the screen, including spaces, tabs, and carriage returns (end-of-line characters). Here are the example of multi lines comments. The multiline style of commenting is the same as in C. Multi-lines comments − They are generally used to provide pseudocode algorithms and more detailed explanations when necessary. Multi-lines printing − Here are the examples to print multiple lines in a single print statement − Here are the examples of single line comments. Single-line comments − They are generally used for short explanations or notes relevant to the local code.
There are two commenting formats in PHP − HTML script tagsĪ comment is the portion of a program that exists only for the human reader and stripped out before displaying the programs result. To use ASP-style tags, you will need to set the configuration option in your php.ini file.
#PHP VIEWER WITH LINES CODE#
This option must be disabled to parse XML with PHP because the same syntax is used for XML tags.ĪSP-style tags mimic the tags used by Active Server Pages to delineate code blocks. Set the short_open_tag setting in your php.ini file to on. Short tags are, as one might expect, the shortest option You must do one of two things to enable PHP to recognize the tags −Ĭhoose the -enable-short-tags configuration option when you're building PHP. Short or short-open tags look like this − If you use this style, you can be positive that your tags will always be correctly interpreted. The most universally effective PHP tag style is − There are four ways to do this − Canonical PHP tags The mechanism for doing so is known as 'escaping to PHP'. The PHP parsing engine needs a way to differentiate PHP code from other elements in the page. This chapter will give you an idea of very basic syntax of PHP and very important to make your PHP foundation strong.