Class Definitions

Class declarations have their opening brace on a new line:

<?php
class Foo_Bar
{

    
//... code goes here

}
?>
Function Calls (Previous) Function Definitions (Next)
Last updated: Sat, 25 Oct 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

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