Is PHP hard to learn for a newbie ?

Desert90

Elite Member
Joined
Sep 23, 2012
Messages
1,848
Reaction score
622
I would like to learn a coding language. I think C would be too heart, so i want to learn PHP.
Only for me and maybe later for small projects. I only know a bit of HTML.
Can i learn PHP and MYSQL if i buy a good book and work hard on it ?
Or any other suggestions what's better for a newbie ?
 
So many opinions on this.
I should at least go for HTML and CSS first.
 
Okay, PHP outputs HTML if that is what you want it to do.

It is very important to learn the HTML and CSS standards before you start delving into server side programming languages, as the protocols are very important in all web access. As for the difficulty of learning it, it greatly varies depending on your grasp of programming languages. If you understand the syntax of other languages PHP will be no problem for you. If you have never programmed before it may take a little more time.

My suggestion is to start off by learning how to set up quality HTML code. Next you need to know how to augment that code with CSS. Once you have those two taken care of you can start to delve into PHP or ASP.
 
Thanks guys for the help :)

I will try to get a good book about HTML/CSS programming :)
 
Wat iz you talking about Cletus?

PHP outputs HTML if that is what you want it to do ?!

That's stupid.. Output is text/html which is HTML with or without HTML tags.

Also you need to learn HTML with CSS.. learning them separately doesn't make sense.
Also, ASP is old and it's syntax is not that common anymore.. ASP.NET and it's MVC is the new shit.

I'd suggest OP to use PHP to get basic understanding of OOP and then ASP.NET if he wants it.
 
php seems really easy if you know the syntax. I know vb.net which is very easy and php is quite similar.
I think if you checked out a few tuts you'd be off writing within a week or two.

I've been using this site to ease me into php and I find it good to learn from. The tutorials aren't boring like some.

php-101-php-for-the-absolute-beginner/
 
Rather than books, you should try watching some videos on youtube or where you can find good one.
Bet that's more faster and easy way to learn php. Good Luck
 
Difficulty is in the eye of the beholder. But if you are motivated and stick to it you will progress pretty fast.
 
Wat iz you talking about Cletus?
not stupid. He is saying that PHP outputs HTML if you want it to. You can use PHP to do a lot of things without ever outputting any HTML such as outputting JSON or XML or create your own API. You don't need to know HTML/CSS to learn PHP however it is recommended to know HTML just because you are dealing with websites. Technically though you shouldn't need to know HTML if learning PHP because the PHP is logic and it should be separated from the HTML. Same with CSS. You also do not need to learn HTML with CSS. They should be separated. however, it is recommended that you know some CSS and how to position your elements. .NET still uses ASP code. ASP is old. So is PHP. They are both still common but PHP is more common. Personally I prefer PHP over ASP and .NET.
 
You can learn any language with google and a little motivation and patience. PHP is the best place to start (and some javascript). PHP is my jam and has helped me make thousands and thousands of dollars. Thumbs up over here!
 
I would like to learn a coding language. I think C would be too heart, so i want to learn PHP.
Only for me and maybe later for small projects. I only know a bit of HTML.
Can i learn PHP and MYSQL if i buy a good book and work hard on it ?
Or any other suggestions what's better for a newbie ?

PHP is a large world, there are 10 years + pros who admit to still go back to their learning resources when the need arises--what's important is taking the first step, understanding the curve in Programming and upping your game. It's not difficult, you simply need to have the motivation, find the right resources that won't make it look like rocket science and if possible join a community.

I can't suggest buying books would be the summa for you, some people (like myself) learn better with websites and video tutorials. If you know your forte of learning, stick to it, if it's books buy a well-rounded book (don't get chickened by the size), if it's online resources there're quite a lot to choose from say subscriptions and free ones (depending on your budget). Long story short, hit Google, read the comments on here and in numerous other forums, and you could be scribbling codes in the first month of the new year.
 
I wasn't going to comment here since you've gotten all the answers you needed but PHP is easy to understand as long as you understand the syntax.
If you're planning on learning PHP, you should definitely learn HTML(5) and CSS(3), as it'll make things much easier for your case.
HTML could be described as the texture of a design, while the coloring is used from CSS. That's just a simple example.

It's always good to know many different languages.
 
When I started learning PHP, I started by writing a content management system. Turns out that it was the worst content management system in human history, but I sure learned a lot. Another friend of mine learned PHP through programming a web based game.
Point is, try to find something interesting that will keep your attention for a long development process! Then, resign yourself to a very long learning curve.
 
PHP is not hard to learn. If you know C a bit, you'll be find.

But the difficulty with PHP, its that you can't JUST know PHP... You need to know these too:

- HTML
- CSS
- Javascript
- SQL

They all work together -- in a way -- and with PHP alone, you won't go very far... But if you can learn the rest (or if you already know them), then you'll find it pretty straightforward.
 
C isn't much harder than php. Php is based on C. Thr question is what you want to make. Do you want a web app or desktop app? A web bot / scraper or a game? Or a Facebook clone?

Your language is dictated by your end product. If you want to make desktop apps php is useless.
 
Back
Top