Full threaddana321·In the example given there, use json_encode($name)That will encode any data structure properly for output into JavaScript.View on HN