
And I'm sick of your attitude. You have to understand Charlie that people have coding preferences, just because they may not be the same of yours there is no need to complain?Caleb correct me if I'm wrong, isn't it bad to have spacing like
$_GET ["var"]
Between the T and square left bracket? I don't know...
I think we should try and conform to pear.php.net's standards, they are quite good. I'm sick of everybody adding whitespace and parenthesis EVERYWHERE to make it look 'pretty'..
Whitespace and unecessary characters should only be used where it makes it easier to read, and less to type, IMO.
Back for a while.
No, he's just acting like he knows something.. and is trying to "outsmart me" and tell me the "correct" way to do things.
Yet at the beginning of this year, had had a Habbo JPEG avatar, didn't know a lick of PHP, and liked to "test divs".
I just want to say something to Charlie.
Just because someone uses
Or someone else usesPHP Code:echo "hi";
Or another person usesPHP Code:echo 'hi';
It still works, there isn't any need to bang on about parenthesis or pretty code, you need to learn to respect that people have very different methods of coding and people always will. I would understand if the methods didn't work or absolutely killed loading times but they don't.PHP Code:echo ("hi");
@denta, lol.
Back for a while.
Well there really is no point in doing:
when you could just do:PHP Code:echo 'hello ' . $name . ' yeah so here is the motd: ' . $motd . ' cause today is ' . $date . ' yeah so k.';
PHP Code:echo "hello {$name} yeah so here is the motd: {$motd} cause today is {$date}";
Yeah I know but there is some strange coders out there that would probably prefer thatWell there really is no point in doing:
when you could just do:PHP Code:echo 'hello ' . $name . ' yeah so here is the motd: ' . $motd . ' cause today is ' . $date . ' yeah so k.';
PHP Code:echo "hello {$name} yeah so here is the motd: {$motd} cause today is {$date}";
Everyone needs to respect it though.
Back for a while.
Not really, if you do it the way like I said.. it's wasting time.. and giving PHP to hard of a time.
'' was really invented for short phrases and short strings with no variables. Hence the reason in C languages it's max char range is 3.
I feel like being an *******:Well there really is no point in doing:
when you could just do:PHP Code:echo 'hello ' . $name . ' yeah so here is the motd: ' . $motd . ' cause today is ' . $date . ' yeah so k.';
PHP Code:echo "hello {$name} yeah so here is the motd: {$motd} cause today is {$date}";
Well there really is no point in doing:
when you could just do:PHP Code:echo "hello {$name} yeah so here is the motd: {$motd} cause today is {$date}";
More to the point coding preference can be bad. Using parenthesis or wrong quotes in any script can and has been proven and has legitimate reasons to slow it down.PHP Code:echo "hello $name yeah so here is the motd: $motd cause today is $date";
Dentafrice, is that built into ZDE?
How could this hapen to meeeeeeeeeeeeeee?lol.
and I do this
echo( 'I rather do this, cause ' . $im_awesome . ' and thats that.' );
OMG PARENTHESIS' OMG MURDERR REIGGNZ JA RULLE my neg
Hi, names James. I am a web developer.
phpDoc is a documenter for PHP. I don't see what this has to do with code formatting?
I don't type the spaces, I don't type any of the formatting.
I have a nice little too called Ctrl+Shift+F which does it all for me, to phpDoc standards.. which are highly acceptable
pear's standards are laughed at, and are only used for pear repository coding, not a standard for coding.
Precisely, I've just been looking through this thread trying to come up with something to say which will shut everyone up.
Coding PHP has a lot of preference mixed into it, whether you want to use () or not, " or ', they all have their uses and it's all preference. There is no right or wrong, nor is there with indenting, so stop bloody going on about it. The only benefit with using " against ' and () against none is the speed would be increased if you were coding on a server with heavy traffic. Which none of you in this thread do. (Unless Invent has posted).
visit my internet web site on the internet
http://dong.engineer/
it is just videos by bill wurtz videos you have been warned
Want to hide these adverts? Register an account for free!