Jump to content

PHP Coding Guidle lines.


paragkalra

Recommended Posts

Ya its a total preference....

 

when i first started programming i would for example write my methods like this:

<?php
function myName() {
    // code
}
?>

 

then a teacher came a long and got all moody so it changed to

<?php
function myName() 
{
    // code
}
?>

 

now this class that im in now (new teacher) SWEARS by

<?php
function myName() {
    // code
}
?>

 

so ya... stick with what you can read... just keep it clean and be flexible to change

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.