Php String Functions Javatpoint Javascript Array Sort