Answers for "how to json_encode an array in php unexpected identifier"

PHP
1

how to json_encode an array in php unexpected identifier

// Don't wrap the json_encode result in quotes
var data = <?php echo json_encode($serializedData) ?>;
Posted by: Guest on June-23-2020

Code answers related to "how to json_encode an array in php unexpected identifier"

Browse Popular Code Answers by Language