Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Tutorials
A basic pdo database class
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Weasel" data-source="post: 359447" data-attributes="member: 9520"><p>Everyone has their own preference, there is no specific rule (coding standard) which says you MUST have the opening bracket on the same line as the function/class, however they do say you SHOULD do it. I always try to follow the PHP coding standards, however I do prefer the bracket on the next line myself. Especially in long if statements, it's easier to read/oversee the code.</p></blockquote><p></p>
[QUOTE="Weasel, post: 359447, member: 9520"] Everyone has their own preference, there is no specific rule (coding standard) which says you MUST have the opening bracket on the same line as the function/class, however they do say you SHOULD do it. I always try to follow the PHP coding standards, however I do prefer the bracket on the next line myself. Especially in long if statements, it's easier to read/oversee the code. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Tutorials
A basic pdo database class
Top