Can you recommend a good place to do PHP exercises?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
KyZu
Forum Newbie
Posts: 17
Joined: Sun Apr 24, 2011 9:13 pm

Can you recommend a good place to do PHP exercises?

Post by KyZu »

So I just started learning PHP a few days ago and I think I'm understanding it, I know what things do and why they're suppose to do it, except most of the time I feel like I'm just looking and typing code...the author is simply saying "When you do this, that happens, and when you change that, this happens" -- It's nice to understand the theory behind it, but I'd like to PRACTICE, I'd like to make some mistakes and learn from them.

I know a lot of people will say "Just try to make something!" but I feel overwhelmed with information, I don't know where to 'start' in order to make something simple.

So does anyone know of a good book/website/etc that gives you exercises that slowly increase in difficulty?
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Can you recommend a good place to do PHP exercises?

Post by social_experiment »

Website/s :
w3schools.
Books :
The PHP manual, Anything with "learn php" in the title is a good read (imo).
KyZu wrote:I know a lot of people will say "Just try to make something!" but I feel overwhelmed with information, I don't know where to 'start' in order to make something simple.
Try the basic 'Hello World' script. The thing is that you have to experiment with php (as with many things) to find out how it works. You can read all the books, know the manual back to front but if you can't implement what you have learned you just proved that you have a good memory.

Try creating small functions to check input, to check string functions, etc then save these to a library where you can keep them for later use. Once you have the basics down, move onto bigger things like database connections and data manipulation. The key is to not think that you have stopped learning when you know 'everything'.

Also, you can bounce ideas of the forum users :) It's a good place for help, ideas, etc.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply