settingsAccountsettings
By using our mini forum, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy
Menusettings

Q: What is the difference between PHP and Javascript?

+4 votes

Hi, what is the difference between PHP and Javascript?

Sorry, I am newbie and I am trying to figure out what to learn next (have some experience with Java and C#...) Thanks!

asked in JavaScript category by user ak47seo
edited by user ak47seo

3 Answers

+4 votes

The video below nicely explains and compares JavaScript and PHP in terms of differences and similarities.

The main idea of it is that JavaScript lives in the browser and PHP on the server and when you know JavaScript it is easy to learn PHP....

Enjoy:

https://www.youtube.com/watch?v=dJJvK3Fre0I

answered by user samfred5830
edited by user golearnweb
+2 votes
PHP is more easy to learn as compare to Javascript. Its lagre code Vs short code of programming.
answered by user Rennie Bottali
+1 vote

Both PHP and JavaScript are: dynamic (scripting) languages:

  • Implicit type declaration
  • Weakly typed
  • Type checking occurs at run-time

Dynamic languages: JavaScript, PHP, Python, Ruby

Static Languages:

  • Explicit type declaration
  • Strongly typed
  • Type checking occurs at compile-time

Statically-typed languages: C, C++, C#, Java

answered by user golearnweb
edited by user golearnweb
...