Calling Javascript function in PHP while passing PHP variables into the function

后端 未结 2 819
囚心锁ツ
囚心锁ツ 2020-12-21 16:25

I\'m experiencing a problem when calling a JavaScript function inside PHP code and trying to pass my PHP variables as parameters into the function. While it seems really sim

2条回答
  •  無奈伤痛
    2020-12-21 16:44

    I think you should use curly braces to better distinguish variables in a string. Just wrap them like this:

    echo ""
    

提交回复
热议问题