Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Mar Bocatcat
Mar Bocatcat
7,405 Points

Suggestions(Web-Development)

Good evening team,

I am currently doing the front-end web development track and Im debating if I should do full-stack JavaScript next or PHP. My goal is to get a job as a front-end developer.

Which is more important to understand?

What is PHP and what does help me do?

Can I do in JavaScript what I can do in PHP?

Thanks!

Andrew Rady
Andrew Rady
20,880 Points

Hey Mar,

With your goal of being a front-end developer I would recommend doing the full-stack next. PHP is a back end programming language that servers use. This is what sends emails on contact forms and so on. I would recommend looking into PHP and some point as it will help you with qualifications though. Employers want people to have their main strengths and have a little knowingly in other places to work well with a team. Javascript itself can not do what PHP does but there are frameworks like node.js and angular.js that can do much of PHP like send emails etc, and these are written in JavaScript.

1 Answer

Christian Kroul
Christian Kroul
9,849 Points

Hello Mar Bocatcat, it depends, because although Php is a popular pick, it may be hard to understand, javascript can do some things that php can do and vica versa. But you should learn both, because it never hurts to gain knowledge.

Basically Php is a stands for Hypertext Preprocessor, and its a server side scripting language, which means it's not front end development, Php is back end. so Php can create dynamic web pages and access the MySQL database. some things with php you can do is pagination, a search bar etc.

Yes javascript can do what php can do, and same thing as php can do some tasks which javascript can't at the end of the day its all about your preference.

This is an Link you can click to learn
a little more.

Here is a link to the php Documentation to get started. '

Hope that helps