Notice: Constant WP_MEMORY_LIMIT already defined in /home/javawith/public_html/codesjava.com/wp-config.php on line 107

Notice: Constant WP_MAX_MEMORY_LIMIT already defined in /home/javawith/public_html/codesjava.com/wp-config.php on line 108
PHP example program - CodesJava

CodesJava

Easy learning with example program codes

php example program


Notice: Undefined variable: footnotelist in /home/javawith/public_html/codesjava.com/wp-content/plugins/latex2html/inc/core.php on line 475

It is easy to read the definition of PHP but what does it imply?

Let us show you a simple example of PHP. It is easy to draft one.

To do so, first you have to create a file and write HTML tags + PHP code and save this file with .php extension.

All PHP code goes between php tag. A syntax of PHP tag is given below:

<?php   
//your code here  
?>

Example

<!DOCTYPE>  
<html>  
<body>  
<?php  
echo "<h2>Hi there !</h2>";  
?>  
</body>  
</html>

Output

Hi there !
Please follow and like us:
error
Posted in PHP   








Copyright © 2019 CodesJava DMCA.com Protection Status