Php Pretty Print Array To String Join Typescript Vs Javascript