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
THE END

More Related Content

PPTX
Function overloading
PDF
Dependency injection in Drupal 8
PDF
CFML Enhancements in ColdFusion 10
PPTX
Function overloading
PPT
Function
PPTX
Classes function overloading
PDF
C# 4.0 dynamic
PPTX
PHP function
Function overloading
Dependency injection in Drupal 8
CFML Enhancements in ColdFusion 10
Function overloading
Function
Classes function overloading
C# 4.0 dynamic
PHP function

Viewers also liked (9)

ODP
Coding In Php
PPTX
PHP FUNCTIONS
PPSX
PHP Comprehensive Overview
PDF
Introduction to php web programming - sessions and cookies
ODP
PHP Web Programming
PPT
Class 6 - PHP Web Programming
PDF
Introduction to PHP
PPT
Php Presentation
PPT
Introduction to PHP
Coding In Php
PHP FUNCTIONS
PHP Comprehensive Overview
Introduction to php web programming - sessions and cookies
PHP Web Programming
Class 6 - PHP Web Programming
Introduction to PHP
Php Presentation
Introduction to PHP
Ad

Similar to Php Coding Convention (20)

PPTX
FAIZAN JAVED BUTT_845544_assignsubmission_file_ppt VP.pptx
PPT
Virtual Function and Polymorphism.ppt
PPTX
21CSC101T best ppt ever OODP UNIT-2.pptx
PPTX
Functions in C++ programming language.pptx
PPTX
Improving rpc bkp
PDF
EMC Documentum - xCP.x Updating Endpoint
ODT
Mysql
TXT
PDF
Constructors & Destructors [Compatibility Mode].pdf
PPTX
functIONS PROGRAMMING CIII II DJDJKASDJKJASD.pptx
PPTX
Ian 2014.10.24 weekly report
PPT
Constructors and destructors in C++
PDF
Customizing oro crm webinar
PDF
22 scheme OOPs with C++ BCS306B_module2.pdfmodule2.pdf
PDF
Symfony2 - from the trenches
PDF
Symfony2 from the Trenches
PPT
ASP.NET 09 - ADO.NET
PPTX
Procedure and Functions in pl/sql
PPTX
Classes and objects
DOC
Labsheet 7 FP 201
FAIZAN JAVED BUTT_845544_assignsubmission_file_ppt VP.pptx
Virtual Function and Polymorphism.ppt
21CSC101T best ppt ever OODP UNIT-2.pptx
Functions in C++ programming language.pptx
Improving rpc bkp
EMC Documentum - xCP.x Updating Endpoint
Mysql
Constructors & Destructors [Compatibility Mode].pdf
functIONS PROGRAMMING CIII II DJDJKASDJKJASD.pptx
Ian 2014.10.24 weekly report
Constructors and destructors in C++
Customizing oro crm webinar
22 scheme OOPs with C++ BCS306B_module2.pdfmodule2.pdf
Symfony2 - from the trenches
Symfony2 from the Trenches
ASP.NET 09 - ADO.NET
Procedure and Functions in pl/sql
Classes and objects
Labsheet 7 FP 201
Ad

Recently uploaded (20)

PDF
Credit Without Borders: AI and Financial Inclusion in Bangladesh
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PPTX
Modernising the Digital Integration Hub
PDF
OpenACC and Open Hackathons Monthly Highlights July 2025
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
DOCX
search engine optimization ppt fir known well about this
PPTX
Benefits of Physical activity for teenagers.pptx
PDF
A review of recent deep learning applications in wood surface defect identifi...
PDF
CloudStack 4.21: First Look Webinar slides
PDF
Two-dimensional Klein-Gordon and Sine-Gordon numerical solutions based on dee...
PPT
Module 1.ppt Iot fundamentals and Architecture
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PPTX
Chapter 5: Probability Theory and Statistics
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
STKI Israel Market Study 2025 version august
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
Credit Without Borders: AI and Financial Inclusion in Bangladesh
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
Modernising the Digital Integration Hub
OpenACC and Open Hackathons Monthly Highlights July 2025
1 - Historical Antecedents, Social Consideration.pdf
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
search engine optimization ppt fir known well about this
Benefits of Physical activity for teenagers.pptx
A review of recent deep learning applications in wood surface defect identifi...
CloudStack 4.21: First Look Webinar slides
Two-dimensional Klein-Gordon and Sine-Gordon numerical solutions based on dee...
Module 1.ppt Iot fundamentals and Architecture
Final SEM Unit 1 for mit wpu at pune .pptx
Chapter 5: Probability Theory and Statistics
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
Custom Battery Pack Design Considerations for Performance and Safety
sustainability-14-14877-v2.pddhzftheheeeee
Getting started with AI Agents and Multi-Agent Systems
STKI Israel Market Study 2025 version august
NewMind AI Weekly Chronicles – August ’25 Week III

Php Coding Convention

  • 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();
  • 3. 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. 4. Convention name of some tags on web form
  • 5. 5. Convention of database : Database name = prefix + name Table name = prefix + name Column name = prefix + name