1 / 9

PHP Coding Standards

Hire Dedicated Programmers as you need from HireDedicatedProgrammers offers scalable and attractive web solution to the customers. They not only help you to create a website as per your need but also give suggestion to improve technical aspects of your website. Enquire: http://hirededicatedprogrammers.com

tamil96
Download Presentation

PHP Coding Standards

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PHP Coding Standards

  2. Over the past decade, the number of websites which are developed in PHP Language becomes increased. • Some of the business websites fail to achieve the desired outcome due to its low coding standards. • As there are many PHP Developers in the world may follow the different coding styles which make the confusion among others to understand. PHP Coding Standards

  3. It is really hard to understand and how to use the code on the website. • Sticking to the standard coding will help the developers to maintain the consistency. PHP Coding Standards

  4. In PHP Language you can use normal tags as well as short tags to perform in coding. • For Example, it gives the same values if you use “<?” this code or “<?php” this code. • Using short tags may arise some problems in fetching the data from the server and when updating the website into the new version. • Try to avoid using short tags when coding. Short Tags

  5. In PHP Language you can use normal tags as well as short tags to perform in coding. • For Example, it gives the same values if you use “<?” this code or “<?php” this code. • Using short tags may arise some problems in fetching the data from the server and when updating the website into the new version. • Try to avoid using short tags when coding. Short Tags

  6. In the standard format, the coding used for commenting line is // for one line and /* */ for multiple lines. This is common for both C and C++ language. • Some of the developer using # symbol for writing a comment in PHP Language. It makes more people in confusion. • Hire a Developerwith technical expertise to design a website with good coding standards. Commenting Line

  7. To minimizing the file some developers may type more than 90 characters in a line. It is very challenging to understand the coding if you use more characters in the single line. • It is highly advised to use 75 to 85 characters in a line. Instead of using multiple tabs in coding it is suggested to use 4 spaces to differentiate from the coding. Line Length

  8. Naming convention needs to be standard to make all the developers understand your coding. • • Try to use lower case letter when naming the functions. • • When you using the global constants try using upper case letters. You can also use separator symbol in the variables. Naming Variables

  9. Thank You • For More: https://hireindianprogrammers.com/

More Related