note 3618 deleted from function.array by irc-html

From: Date: Sat, 19 Jan 2002 20:52:18 +0000
Subject: note 3618 deleted from function.array by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25426@lists.php.net to get a copy of this message
I use this to completely display the content of an array: <pre> function print_array($array) { if(gettype($array)=="array") { echo "<ul>"; while (list($index, $subarray) = each($array) ) { echo "<li>$index <code>=&gt;</code> "; print_array($subarray); echo "</li>"; } echo "</ul>"; } else echo $array; } </pre>

« previous php.notes (#25426) next »