PHP SYNTAX
PHP script can be placed everywhere in the php file. PHP script starts with <?php and ends with ?>.
Example:
<?php
// PHP codes goes here.
?>
OR inline php script can also be placed.
Example:
1. <?php //php codes; ?>
2. <?php echo "hello"; ?>
3. <a href="http://<?php echo "www.google.com"; ?>">Google</a>
Previous
Next Lesson
PHP script can be placed everywhere in the php file. PHP script starts with <?php and ends with ?>.
Example:
<?php
// PHP codes goes here.
?>
OR inline php script can also be placed.
Example:
1. <?php //php codes; ?>
2. <?php echo "hello"; ?>
3. <a href="http://<?php echo "www.google.com"; ?>">Google</a>
Previous
Next Lesson
No comments:
Post a Comment