Powered by Tech-Attacks
Showing posts with label PHP Programming. Show all posts
Showing posts with label PHP Programming. Show all posts

PHP Syntax - Learn Basic PHP - PHP Hello World Program

Hello Readers, Today TechAttacks will show you the basics of PHP.
PHP is a server side scripting language that, very often along with databases created with SQL, which can create dynamic webpages.
In other simple words we can say PHP script is executed on the server and the plain HTML result is sent back to the browser.

A PHP script can be placed anywhere in the document.
A PHP script starts with "" and ends with "?>"


The default file extension for PHP files is ".php".
A PHP file normally contains HTML tags and some PHP scripting code.
Below, we have an example of a simple PHP file, with a PHP script that uses a built-in PHP function "echo" to output the text "Hello World" on a web page: