PHP Demo
PHP Code Output
Array before sorting!

The array item is: PHP
The array item is: Java
The array item is: Python
The array item is: CSS
The array item is: HTML


Array after sorting!

The array item is: CSS
The array item is: HTML
The array item is: Java
The array item is: PHP
The array item is: Python