Tag: beginners

Beginner’s Guide to PHP – Part Six

Functions are the lifeblood of PHP. You can’t do a lot without PHP’s built-in functions, and life would get very tedious very quickly if you weren’t able to define your own in a script. Let’s take, for example, one of my scripts: BellaBook. BellaBook is a flat file guestbook and so constantly writes to files. […]

Beginner’s Guide to PHP – Part Five

Back in Part Four of the Beginner’s Guide to PHP, we covered the basics of arrays, and the foreach construct which is used to iterate over arrays. Today, you get to learn about for(), woot for you. According to the PHP manual, for() loops are the most complex in PHP, so I’m hoping I can […]

Beginner’s Guide to PHP – Part Four

In Part Three of the Beginner’s Guide to PHP we learnt about the if construct (“statement”), and using it to check the value of some input. In this guide we’ll learn about two more constructs: foreach() and array() foreach Construct foreach — a type of loop, but we’ll cover that more in the future — […]

Beginner’s Guide to PHP – Part Three

I’ve had to restart this about 4 times now, because each time I decide to finish off, I get half way and somehow lose the file. I don’t know about l33t PHP Ninja; recently I’ve been l33t file loser. Anyway, quick recap: in Part Two of the PHP Beginners Guide I briefly covered the basic […]

Beginner’s Guide to PHP – Part Two

Let’s have a quick re-cap of what we covered in Beginner’s Guide to PHP – Part One: there are different data types (string, integer, floating point number and boolean) and variables are created by simply assigning data to them. Simple enough? Well, now we’re going to take a look at mathematical operators and what we […]

Beginner’s Guide to PHP – Part One

First things first, we might as well get out of the what PHP is not: PHP is not a replacement for HTML. PHP is not a synonym for MySQL. Although they work well together, they’re not the same thing. PHP is not all about layout-based includes. PHP is not magically going to make your website […]