SlideShare a Scribd company logo
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

Viewers also liked (9)

Coding In Php
Coding In Php
Harit Kothari
 
PHP FUNCTIONS
PHP FUNCTIONS
Zeeshan Ahmed
 
PHP Comprehensive Overview
PHP Comprehensive Overview
Mohamed Loey
 
Introduction to php web programming - sessions and cookies
Introduction to php web programming - sessions and cookies
baabtra.com - No. 1 supplier of quality freshers
 
PHP Web Programming
PHP Web Programming
Muthuselvam RS
 
Class 6 - PHP Web Programming
Class 6 - PHP Web Programming
Ahmed Swilam
 
Introduction to PHP
Introduction to PHP
Bradley Holt
 
Php Presentation
Php Presentation
Manish Bothra
 
Introduction to PHP
Introduction to PHP
Jussi Pohjolainen
 

Similar to Php Coding Convention (20)

Rules generally followed are1. Using existing terminology wheneve.pdf
Rules generally followed are1. Using existing terminology wheneve.pdf
ankurbhargava44
 
Coding standards php
Coding standards php
sagarrautray777
 
Database design guide
Database design guide
Universitas Putera Batam
 
PHP & Mysql Code optimization
PHP & Mysql Code optimization
Abu Saleh Muhammad Shaon
 
Name the World
Name the World
Saranya Siripuekpong
 
Lecture No 13.ppt
Lecture No 13.ppt
AhmadNaeem59
 
codingtechniques1.ppt
codingtechniques1.ppt
azida3
 
Write code like Hamlet! 15 golden rules for names in programming
Write code like Hamlet! 15 golden rules for names in programming
Tomasz Ostrowski
 
Oops in PHP
Oops in PHP
Mindfire Solutions
 
PHP
PHP
webhostingguy
 
Practically Using Glorp
Practically Using Glorp
ESUG
 
Variables
Variables
Maha Saad
 
testing add
testing add
alind tiwari
 
latest slide
latest slide
alind tiwari
 
Coding conventions
Coding conventions
systemcrashed
 
psnreddy php-oops
psnreddy php-oops
satya552
 
Object Oriented PHP5
Object Oriented PHP5
Jason Austin
 
PLSQL Standards and Best Practices
PLSQL Standards and Best Practices
Alwyn D'Souza
 
76829060 java-coding-conventions
76829060 java-coding-conventions
slavicp
 
Naming Standards, Clean Code
Naming Standards, Clean Code
CleanestCode
 
Rules generally followed are1. Using existing terminology wheneve.pdf
Rules generally followed are1. Using existing terminology wheneve.pdf
ankurbhargava44
 
codingtechniques1.ppt
codingtechniques1.ppt
azida3
 
Write code like Hamlet! 15 golden rules for names in programming
Write code like Hamlet! 15 golden rules for names in programming
Tomasz Ostrowski
 
Practically Using Glorp
Practically Using Glorp
ESUG
 
psnreddy php-oops
psnreddy php-oops
satya552
 
Object Oriented PHP5
Object Oriented PHP5
Jason Austin
 
PLSQL Standards and Best Practices
PLSQL Standards and Best Practices
Alwyn D'Souza
 
76829060 java-coding-conventions
76829060 java-coding-conventions
slavicp
 
Naming Standards, Clean Code
Naming Standards, Clean Code
CleanestCode
 
Ad

Recently uploaded (20)

Agentic AI: Beyond the Buzz- LangGraph Studio V2
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Shashikant Jagtap
 
FME for Good: Integrating Multiple Data Sources with APIs to Support Local Ch...
FME for Good: Integrating Multiple Data Sources with APIs to Support Local Ch...
Safe Software
 
Reducing Conflicts and Increasing Safety Along the Cycling Networks of East-F...
Reducing Conflicts and Increasing Safety Along the Cycling Networks of East-F...
Safe Software
 
Oracle Cloud and AI Specialization Program
Oracle Cloud and AI Specialization Program
VICTOR MAESTRE RAMIREZ
 
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
angelo60207
 
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Alliance
 
The State of Web3 Industry- Industry Report
The State of Web3 Industry- Industry Report
Liveplex
 
PyData - Graph Theory for Multi-Agent Integration
PyData - Graph Theory for Multi-Agent Integration
barqawicloud
 
Analysis of the changes in the attitude of the news comments caused by knowin...
Analysis of the changes in the attitude of the news comments caused by knowin...
Matsushita Laboratory
 
Kubernetes Security Act Now Before It’s Too Late
Kubernetes Security Act Now Before It’s Too Late
Michael Furman
 
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
SOFTTECHHUB
 
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Safe Software
 
Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025
Safe Software
 
June Patch Tuesday
June Patch Tuesday
Ivanti
 
Supporting the NextGen 911 Digital Transformation with FME
Supporting the NextGen 911 Digital Transformation with FME
Safe Software
 
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
Edge AI and Vision Alliance
 
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Alliance
 
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
NTT DATA Technology & Innovation
 
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc
 
Data Validation and System Interoperability
Data Validation and System Interoperability
Safe Software
 
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Shashikant Jagtap
 
FME for Good: Integrating Multiple Data Sources with APIs to Support Local Ch...
FME for Good: Integrating Multiple Data Sources with APIs to Support Local Ch...
Safe Software
 
Reducing Conflicts and Increasing Safety Along the Cycling Networks of East-F...
Reducing Conflicts and Increasing Safety Along the Cycling Networks of East-F...
Safe Software
 
Oracle Cloud and AI Specialization Program
Oracle Cloud and AI Specialization Program
VICTOR MAESTRE RAMIREZ
 
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
angelo60207
 
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Alliance
 
The State of Web3 Industry- Industry Report
The State of Web3 Industry- Industry Report
Liveplex
 
PyData - Graph Theory for Multi-Agent Integration
PyData - Graph Theory for Multi-Agent Integration
barqawicloud
 
Analysis of the changes in the attitude of the news comments caused by knowin...
Analysis of the changes in the attitude of the news comments caused by knowin...
Matsushita Laboratory
 
Kubernetes Security Act Now Before It’s Too Late
Kubernetes Security Act Now Before It’s Too Late
Michael Furman
 
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
SOFTTECHHUB
 
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Safe Software
 
Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025
Safe Software
 
June Patch Tuesday
June Patch Tuesday
Ivanti
 
Supporting the NextGen 911 Digital Transformation with FME
Supporting the NextGen 911 Digital Transformation with FME
Safe Software
 
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
Edge AI and Vision Alliance
 
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Alliance
 
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
NTT DATA Technology & Innovation
 
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc
 
Data Validation and System Interoperability
Data Validation and System Interoperability
Safe Software
 
Ad

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