Example:
Then start the Internet Explorer and write the address : http://localhost/test click enter, you will see your code output.
Code output will be: Hello World
Each code line in PHP must end with a semicolon. The semicolon is a separator and is used to distinguish one set of instructions from another. There are two basic statements to output text with PHP: echo and print. In the example above we have used the echo statement to output the text "Hello World".
No comments:
Post a Comment