Typescript Remove Element From Array In Php