Home >Backend Development >PHP Problem >Do I need to learn javascript first to learn php?
Do I need to learn javascript first to learn PHP?
No, JS is a front-end thing, PHP is a back-end thing , it’s the same for both of them to learn first. There is no substantial necessary connection between the two. Javascript is a scripting language executed by the browser to control page content. PHP is the language executed on the server side, which reads the database and displays the content on the page. If you want to increase the interactivity of the page, Javascript is required, otherwise you don’t need to learn it.
To learn PHP, you need to learn HTML first, because PHP relies on outputting HTML to render the page, while JavaScript increases the interactivity of the page. Beginners to PHP do not need to consider these.
Before learning js, you can first familiarize yourself with the syntax and simple applications of JS, such as verifying input, etc., and then just rely on accumulation over time. Getting started with JS is relatively easy, but mastering it requires hard work.
For more PHP related knowledge, please visit PHP Chinese website!
The above is the detailed content of Do I need to learn javascript first to learn php?. For more information, please follow other related articles on the PHP Chinese website!