Php Array Find String Javascript Methods And Functions