previousFunction Calls (Previous) (Next) Function Definitionsnext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Japanese | Polish | Spanish | Turkish

Class Definitions

Class declarations have their opening brace on a new line:

<?php
class Foo_Bar
{

    
//... code goes here

}
?>

previousFunction Calls (Previous) (Next) Function Definitionsnext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
Note by: user@example.com
If we put a starting braces for control structure on same row,then why not same with classes