PHP for Drupal Tutorial #2: PHP Comments and Variables
In this second introductory PHP tutorial, we walk through PHP comments, PHP spacing and variables. I show you the various ways you can create comments in PHP and why you'll want to do that. From there, we briefly looking at spacing in PHP.
Lastly, we cover variables in PHP. I explain what variables are, how you can declare them and how they can be used. Additionally, I also show you two very important functions for strings htmlspecialchars() and strip_tags() when dealing with user inputted strings.