Typescript Includes Array Methods In Php