Thread: TalkPHP Project
View Single Post
Old 06-14-2008, 09:18 PM   #49 (permalink)
Aaron
The Frequenter
 
Join Date: Dec 2007
Location: In my basement
Posts: 386
Thanks: 47
Aaron is on a distinguished road
Default

Okay here are the conventions for the project, tell me if I missed anything, or if you want to change anything.
PHP Code:
<?php
class Example{
  var 
$theInt 1;

  function 
foo($a$b){
    switch (
$a){
    case 
0:
      
$Other->doFoo();
    break;
    default :
      
$Other->doBaz();
    }
  }

  function 
bar($v){
    for(
$i 0$i 10$i++){
      
$v->add($i);
    }
  }
}
?>
__________________
Signatures are nothing but incriminating.

Last edited by Aaron : 06-14-2008 at 10:04 PM.
Send a message via MSN to Aaron
Aaron is offline  
Reply With Quote