Listed below is the code that I use most in PHP. I will be adding to it on an ongoing basis. If you have a question about how to use any of the code please feel free to add a comment at the bottom of the page.
<?php echo $nfiles; ?>
<?php echo "word"; ?>
<?php global $td; ?> <?php $td = "variable"; ?>
$var_value = $_POST['varname'];
$num = $_GET['myNumber'];