>>9
You are right, but for the wrong reasons. I know how to program but when I wrote this shitty thread I was joking around and I wasn't even sober.
Indentation
That was me simply forgetting to do something. Besides, there is no
FIOC I am not required to indent.
Using Barewords
This is a pure retard moment on my behalf. I am actually embarrased as to how I could have fucked up this badly. I was not trying to use a string, I was trying to use a boolean. But instead of "true" and "false" I was fucked up and wrote "yes" and "no". I had finished doing massive gravity bong hits before posting this so my mind was a bit fucked up.
Print instead of Echo
Really? Is it that big of a deal?
Superfluous braces
Also not a big deal. Run this program and it will still work. I was just simply taught to do it this way, I know you can do it other ways but this is the way I remember the most.
Ending the code with ?>
This is another ``Optional'' feature. You can choose to end the code with ?> or you can choose not to. It will still work either way.
Ending the control structure with ;
See above 2 examples
Lacking a space after //
See above 3 examples.
I am not a PHP programmer by any means, I am a Python and Lua programmer. I just like to fuck around with PHP because it's fun programming in a language where I don't have to be serious all the time.