PHP arrays into javascript arrays

前端 未结 6 514
伪装坚强ぢ
伪装坚强ぢ 2021-01-17 01:41

I am a bit confused here on how I implement an array into JS from PHP....

I\'m doing this for testing - eventually I\'ll use long polling or websockets if they get h

6条回答
  •  醉梦人生
    2021-01-17 02:28

    Be sure you're echoing the PHP data into the

    As an aside, it's a good idea to avoid using short tags ( and ?>) in a production setting--many servers have them disabled by default, and it's a really annoying way to have your code break.

提交回复
热议问题