Skip to content

PHP Program 14

Display word after Sorting in alphabetical order.

<?php
$text = array("pranshu", "abhay", "raj", "sarbh", "dimple");
sort($text);
print_r($text);
echo "<br>";
?>

Output