Typescript Join Array Php Functions