Jump to content

PHP Exercises


kade119

Recommended Posts

I'm starting this thread because there are not many actual exercises for beginners learning PHP only tutorials.  So what I'm asking, is for any of the PHP coders out there to begin posting one or two exercises that might be useful to novice PHP coders to work with.  Please post your exercise and the answer to it at the bottom of the your post.  Thank you.

Link to comment
Share on other sites

Here are a couple suggestions:

 

- Try some of the tutorials here on PHP Freaks.

- Search Google for some sample exercises

- Try to solve other peoples' problems that have posted.

- Think of features, widgets, etc. and try to create them.

Link to comment
Share on other sites

Wouldn't it be more logic to create your own website? I mean, if they post the excercise with the answer, you're not going to learn any more than you would if it were as a tutorial.

I agree..

So can you post some ideas for a startup project then??? :-*

I want to do a website for myself, but have too many ideas, and none was put into development.. :'(

any tips??????

Link to comment
Share on other sites

I mean, if they post the excercise with the answer, you're not going to learn any more than you would if it were as a tutorial.

 

That's just because you're not disciplined enough then. If you skip straight to the answer then it's your own fault if you don't learn from exercises.

Link to comment
Share on other sites

I mean, if they post the excercise with the answer, you're not going to learn any more than you would if it were as a tutorial.

 

That's just because you're not disciplined enough then. If you skip straight to the answer then it's your own fault if you don't learn from exercises.

 

You can still learn if you skip directly to the answer- it depends to your way of thinking... unless ofcourse if your the spoon fed type.. so it really falls to DICIPLINE

Link to comment
Share on other sites

If you would like to learn programming, I would consider you begin with a basic programming book. If you know programming like C# or something, PHP will be easy for you, because it requires less. You can try to focus on your main understanding of programming. Like to solve pseudo code or something.

 

These are good websites with exercises:

http://www.spoj.pl/problems/classical/

http://www.cplusplus.com/forum/articles/12974/

http://www.usd116.org/lbeuschlein/C%2B%2B/pseudocode1.htm

http://ocw.capcollege.bc.ca/computing-science/comp-106-programming-with-robots/COMP106-Course-Files/exercises/Exercise1.pdf

 

Link to comment
Share on other sites

  • 5 months later...

If you are looking for PHP exercises, try this:

 

http://phpexercises.com/

 

We've just published the site, with 26 exercises. It's for beginner to intermediate, starting with the very simplest scripts and concepts. The exercises cover variables, control structures, forms, arrays and functions among other things.  You start with the problem, then click a button to see the answer script code. There's a link on the answer page to the output of the answer script. Come give it a try, let us know if the instructions are clear.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.