Home > Article > Backend Development > Is php or js better?
Is php or js better?
js=javascript is a scripting language that works on the browser side, and the data it submits is handed over to the browser for processing. But the current Ajax technology can already deliver the data submitted by js to the browser for processing.
php is a script that works on the server side. It submits data to the server for processing, and the server responds to the browser. You have to look at the BS structure for this. Suggestions for learning: Many people learn js first, which is correct, but if you learn PHP first, js is learned with needs, and what you learn will be more targeted.
To put it simply, js and php themselves run in two different places, and there is no comparability at all!
Displaying pictures, videos, and some web page special effects is something that PHP cannot do, and it should not be what PHP should do.
And data statistics, analysis, and processing are What js can't do, shouldn't be done by js!
They can almost be understood as 2 fields and 2 functions!
For more PHP related knowledge, please visit PHP Chinese website!
The above is the detailed content of Is php or js better?. For more information, please follow other related articles on the PHP Chinese website!