PHP - The Ultimate Basics

Submitted by EvenICouldDoIt.com » This tutorial will teach everything you need to get you on your way to learning PHP. You can learn exactly how it works, how data is sent, as well as a detailed explanation of some of the most commonly used functions.
Rating: 3.0/5 | 1,964 clicks | 6 comments | 1 save | share | report

Comments on this tutorial

ZonaXMay 03, 2007

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!

evenicoulddoitMay 03, 2007

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.

ZonaXMay 04, 2007

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.

evenicoulddoitMay 04, 2007

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

Grandpa-FunkMay 07, 2007

i am a noob to php and i understood :D

MunkenJune 29, 2007

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.

Discuss this tutorial

You must be logged in to comment on a tutorial.