- print_r: documentation ( source)
- shuffle: documentation ( source)
- array_keys: documentation ( source)
<?php
$wl = array(
'word2' => 'link2.com',
'word3' => 'link3.com',
'word4' => 'link4.com',
'word5' => 'link5.com'
);
shuffle($wl);
$newarr = array_keys($wl);
print_r($newarr);