Php Find Index In Array Javascript W3schools