Throwing a coin through learning PHP or JavaScript first

In your opinion, what should I learn first: PHP or JavaScript?

I'm going to study both, but what order do you feel I should study them?

+7
javascript php
source share
10 answers

Javascript, which is a client-side language, is really interesting (although with AJAX, someone will say the need). PHP, on the other hand, is a server-side language that is needed if you want to create a dynamic website that speaks to a database. I would learn PHP first and then sprinkle some Javascript later.

+17
source share

I would say PHP. This should give you the feeling of writing something "whole." If you click on a wall (i.e. Need AJAX), improve your PHP pages using JavaScript (but I would recommend JQuery , which is the JavaScript Framework).

+9
source share

Depends on what you want to do. Learn JavaScript if you want to create fancy effects and settings on your web pages. If you want to use a database or any other server material, learn PHP.

+5
source share

PHP because you learn more about server side for application development, including database and sessions.

Then go to JS when you need to do some things on the client side.

PHP is also more selling.

+3
source share

I would like to add answers to other people that this also depends on your background. If you understand how the network works, you can upgrade to Javascript first. If you donโ€™t, go to PHP, it will help you better understand the Internet, and Javascript will make much more sense.

+3
source share

The fact that you are considering both tells me that you want to create rich internet applications. Start with PHP first and find out how the web application is built from scratch. Feel the MySQL database. After you think you know enough PHP, it is rich in Javascript.

+2
source share

Javascript is a language that can work almost anywhere, because it is supported in almost every browser, so you are likely to be able to use it in every situation, no matter what you program. (So โ€‹โ€‹far this is a website based)

PHP, on the other hand, begins to base its knowledge on server-side programming if you have never done this before. This allows you to use cookies and databases more efficiently than javascript, and allows you to create a real "system" where the data is stored.

Honestly, I would learn PHP first, because it will enable your javascript if you need access to databases, and it will help you learn things like AJAX and JSON.

Also, with libraries like jQuery, Javascript is getting easier to learn.

+1
source share

Without knowing more about your specific situation, I suggest that the documentation for PHP can be more useful than the documentation you find for Javascript.

+1
source share

You could realistically go anyway, but I would say that PHP is the best place to start. PHP is more "rigorous" than JavaScript, so you learn a little formalism and can relax with JavaScript.

0
source share

Depends on what you want to continue, and learn ASP.NET. If so, learn JavaScript. Server languages โ€‹โ€‹offer much more functionality (database connections, server-side effects, etc.).

0
source share

All Articles