Re: print array

From: Date: Fri, 27 Jun 2003 11:14:02 +0000
Subject: Re: print array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-153094@lists.php.net to get a copy of this message
Hello, This is a reply to an e-mail that you wrote on Fri, 27 Jun 2003 at 12:10, lines prefixed by '>' were originally written by you. > I would off course like it even better when i was able to print to the > values > (word and number) in an HTML table structure, or each new word on a > new line > for instance, and without the [ ] and =>. Is this possible, and if > so, how > do i solve this? See www.php.net/foreach echo "<TABLE>\n"; foreach($yourarray as $word=>$count){ echo " <TR><TD>$word</TD><TD>$count</TD></TR>\n"; } echo "</TABLE>\n"; HTH David. -- phpmachine :: The quick and easy to use service providing you with professionally developed PHP scripts :: http://www.phpmachine.com/ Professional Web Development by David Nicholson http://www.djnicholson.com/ QuizSender.com - How well do your friends actually know you? http://www.quizsender.com/ (developed entirely in PHP)

« previous php.general (#153094) next »