Is there there supposed to be a space, between the eg. if
and parentheses in statements?
Like:
if(something)
or:
if (something)
This kind of whitespace doesn't matter. It's up to personal preferences. Various open-source projects will usually define rules for code formatting, and you might want to if you're working in a team, but if you're working alone, just do whatever you like most.
you can use it either way. But keeping a standard coding style will help you make code that can be easily understood by other programmers.
Some of which are specified here.
http://pear.php.net/manual/en/standards.php
http://codex.wordpress.org/WordPress_Coding_Standards
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With