How do I embed PHP code in javascript? _php Tutorials

Source: Internet
Author: User
Tags php json
Today, in a Web site forum, a friend asked: How to embed PHP code in javascript?

This is a very simple question, so send to the Internet to share with you, learning!

The problem is this:

How do I embed PHP code in javascript?
I am a novice, please don't bother me! Hey......

Have a friend to answer:

Alert (" ");

Small series looked, feel not very good, so analyzed the reasons:

General JS is done on the page of the template.

Not a few are written in PHP. Not conducive to modification.

If you want to interact with PHP, you can use

PHP json. Yes, it is. Hope this article for PHP beginners have a good help, welcome you often come to the fire Building Station Academy!

http://www.bkjia.com/PHPjc/364113.html www.bkjia.com true http://www.bkjia.com/PHPjc/364113.html techarticle today, in a Web site forum, a friend asked: How to embed PHP code in javascript? This is a very simple question, so send 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.