Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for How to access PHP variable in JavaScript code?

Current License: CC BY-SA 3.0

9 events
when toggle format what by license comment
Nov 7, 2017 at 15:01 history edited Shiladitya CC BY-SA 3.0
added 37 characters in body; edited title
May 16, 2014 at 15:39 answer added Amit timeline score: 1
May 7, 2014 at 8:16 answer added The Boss timeline score: 1
Apr 5, 2014 at 8:01 comment added Fazal Rasel possible duplicate of Pass a PHP string to a JavaScript variable (and escape newlines)
Apr 5, 2014 at 5:19 vote accept Community Bot moved from User.Id=1556433 by developer User.Id=274402
Apr 5, 2014 at 4:24 answer added Professor timeline score: 1
Apr 5, 2014 at 4:23 comment added user2864740 You can emit the corresponding JavaScript from PHP for the task. I recommend using json_encode for consistency - it will correctly deal with primitives as the "root object".
Apr 5, 2014 at 4:18 answer added Jenz timeline score: 11
Apr 5, 2014 at 4:16 history asked user1556433 CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /