Isn't a control structure actually a function too?twigletmac wrote:if is a control structure - not a function
coding style: curly brackets - why like this?
Moderator: General Moderators
No. A control structure is considered a statement that groups statements, and is part of the core language.
http://www.php.net/control-structures
http://www.php.net/control-structures
phpBB has an outstanding guideline of how they want all of their programmers to program by. I would make note of that.
I don't know what style it is, but I code like so:
Is this a style?
Code: Select all
void function () {
if (condition){
//code
}
else{
//other code
}
//no spaces for debug lines
return; //one space for return lines
}