PHP based programming must be started with <?php and must be ended with ?>
<?php -------- as you wish code here :) --------- ?>
Simple Example :
<?php echo "Hello World"; ?>
PHP basic rules :
‘echo’ is a basic function for ‘ write ‘ your code on browser page and its just can use for ‘one description’. ‘ echo ‘ cannot be use for array description array used to using ‘ print_r() ‘, string type only can be used with ‘ string here ‘ or ” string here “, we can combine PHP with HTML syntax (HTML on PHP). example;
echo ' I am newbie '.'<br/>';
echo " Just using WP Online :D "."<br/>";
for declarated variable we just put it.
next post Insya Allah about PHP on HTML.