Timeline for answer to Unexpected token | Parse PHP array to JavaScript by Quentin
Current License: CC BY-SA 4.0
Post Revisions
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 23, 2020 at 8:27 | comment | added | Quentin |
@Ifaruki — No. As I said, json_encode is compatible with JS. The generated JSON/JS is not being wrapped in quotes to make it a string literal.
|
|
| Sep 23, 2020 at 8:25 | comment | added | Ilijanovic |
hmm doesnt you need to parse it too? like JSON.parse(json_encode( $wagennummern )))
|
|
| Sep 23, 2020 at 8:22 | history | answered | Quentin | CC BY-SA 4.0 |