Php Coding Convention

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    Php Coding Convention - Presentation Transcript

    1. CODING CONVENTION TuVinh Services & Software Solutions ., JSC 1. Name of variable: Name of one variable define by prefix plus Name of variable Example : a. double : prefix = dbl $dblFree = 125.75; b. object : prefix = obj $objCustomer = new Customer();
      • 2.Variable naming convention table
      • 3. Convention of funciton or classs when coding: When you create a function, you need to have one comment that funciton for detail
      • Example:
      • /*
      • Author: Nguyen Thanh Dung
      • Date create : 02/02/2009
      • Date repaire: 03/02/2009
      • Function name: getCustomerName()
      • Input: no values
      • Outpuut: return one array store name of customer
      • /*
      • function getCustomerName() {
      • // some scripts here
      • }
      • 4. Convention name of some tags on web form
      • 5. Convention of database :
      • Database name = prefix + name
      • Table name = prefix + name
      • Column name = prefix + name
    2. THE END

    + Phuong VyPhuong Vy, 9 months ago

    custom

    1356 views, 1 favs, 1 embeds more stats

    1. Coding conventions

    Object Naming Conventions
    Va more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 1356
      • 1327 on SlideShare
      • 29 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 24
    Most viewed embeds
    • 29 views on http://blog.tuvinh.com

    more

    All embeds
    • 29 views on http://blog.tuvinh.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories