How to embed php code in javascript? _ PHP Tutorial

Source: Internet
Author: User
Tags php json
How to embed php code in javascript ?. Today, I found a friend wandering around a website forum asking: how to embed php code in javascript? This is a very simple question, so I shared it with you online. I learned how to embed php code in javascript when I was wandering around a website forum?

This is a very simple problem, so I sent it to the Internet to share with you, and there is no end to learning!

The problem is as follows:

How to embed php code in javascript?
I am a newbie. please do not bother me! Hey ......

A friend answered the following question:

Alert (" ");

After reading it, I thought it was not easy to use, so I analyzed the reasons:

Generally, JS is made on the template page.

Few are written in PHP. Not conducive to modification.

If you want to interact with PHP, you can use

Php json. yes. I hope this article will be helpful for beginners of PHP. You are welcome to come to the school of building a website frequently!

Why? This is a very simple problem, so I sent it to the Internet to share with you, learn...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.