introduction to web programming Scalar variable naming conventions Finally, you might notice that in these examples, we choose very descriptive names. Rather than saying for example:

    $x = 27;
    $y = "Selena Sol";

we say something like the following:

    $age = 27;
    $full_name = "Selena Sol";

Though it is not necessary that you make your scalar variable names descriptive (sometimes it can mean a lot more typing), I recommend that you do your best to choose names that will clearly communicate the function of the variable to you and to others a month or a year down the line.

Previous | Next | Table of Contents