http://some.com/
https://some.com/
http://www.some.com/
https://www.some.com/
ftp://user:pass@some.com
tcp://user:pass@99.100.101.102
The Code:<div class="Script"> <?php /*Set This File => Code_View.php*/ $thisfile = "Ordered_Array.php"; require('header.meta');?> <?php // Ordered Array echo "<h2>Php Ordered Array</h2>"; function Ordered_Array() { $url = "some.com"; $MyArray = array( "http://" => "$url/", "https://" => "$url/", "http://www." => "$url/", "https://www." => "$url/", "ftp://user:pass@" => "$url", "tcp://user:pass@" => "99.100.101.102", ); echo "<p>"; foreach($MyArray as $key => $value) { echo $key.$value."<br>"; } echo "</p>"; } Ordered_Array(); ?> <?php /*Insert Code View*/ include('Code_View.php');?> </div>