Untitled
By: a guest | Mar 20th, 2010 | Syntax:
PHP | Size: 0.45 KB | Hits: 73 | Expires: Never
<?php
//Code
while (...) $friends[]=$data2[1];
var_dump($friends);
if (!$rand) sort($friends,SORT_STRING);
mysql_free_result($req);
return $friends;
//Résultat
array(4) {
[0]=>
string(5) "Amiel"
[1]=>
string(8) "MenkiJoe"
[2]=>
string(5) "lmttm"
[3]=>
string(6) "Adrien"
}
NULL
<br />
<b>Warning</b>: sort() expects parameter 1 to be array, null given in <b>/homez.312/winky/www/lib.php</b> on line <b>378</b><br />
?>