Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


Scalar variable naming conventions

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.

Manipulating substrings with the substr function
Table of Contents
Perl List Arrays


Up to => Home / Authoring / Scripting / Tutorial




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers