Php Find Index In Array Javascript Documentation