Alright, I got it to print out all entries, but is there a function to return a server's ip address? (In Garry's Mod.)
EDIT: Nevermind, I somehow broke it. How do you loop the data until all of it has been printed?
Foreach loops are great for arrays and objects.
foreach ( <array> as <varname> ) {
echo <varname>;
echo "<br/>";
}
Replace
<array> with your array you want to loop through and
<varname> with something logical. Don't forget your $'s!

If you want the key name as well, replace
<varname> with
$key => $value. Both of these will be accessible as variables later on.
You could use them like this:
foreach ( <array> as $key => $value ) {
echo $key . ": " . $value;
echo "<br/>";
}
Do note that the PHP docs warn of
$key and
$value, as well as
<varname> if you used that approach,
will still be set after the foreach is done They recommend using
unset(); to clear those variables, and I do too.
Do something like:
or, for the $key => $value method: