Comments on this tutorial
Mate,
I am discussing the basics of PHP, if it works, it works. It took me a long time to create it all and to say that it's rubbish simply because I double quoted an echo is insulting.
Ok, im sorry.. I might have crossed the line there.
But it's a real fact you're teaching bad practise, that's not bad when it's a little. But the whole tutorial contains it.
Well I hate to say otherwise, but in my opinion if it works it works, the ways you are describing are a little advanced and true you may wish to put them on the right tracks but talking about escaping is a little advanced for the beginner to understand
i am a noob to php and i understood :D
ZonaX,
echo "Did you know that 10 add five equals " . "$numbers";
Is just as proffesional as
echo 'Did you know that 10 add five equals '.$numbers;
I done some projects for companies, and I always use
echo "Did you know that 10 add fice equals $numbers";
And I have never gotten any complains about it.




Contains much bad practise. Do not use this tutorial to learn PHP! This tutorial teaches you how to write PHP, but on a way that you need to change the way you write later. This might seem bullshit, but it's not. You won't be seen proffesional when you are showing this to the company where you want to work!
One little example:
echo "Did you know that 10 add five equals " . "$numbers";
Best way should be:
echo 'Did you know that 10 add five equals '.$numbers;
When using double quotes you need to add slashes escape double quotes, which are used often in HTML. And the dot in the first line is VERY useless for the variable is INSIDE double quotes!