Re: Word Matching Application
| From: | Daniel Brown | Date: | Thu, 06 Jan 2011 02:34:24 +0000 |
| Subject: | Re: Word Matching Application | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-47602@lists.php.net to get a copy of this message | ||
On Wed, Jan 5, 2011 at 21:23, Ron Piggott
<ron.piggott@actsministries.org> wrote:
>
> I only know how to do one array at a time, using FOREACH, like this:
>
> ===
> echo "<ul>\r\n";
>
> foreach($match_words as $word) {
> echo "<li>" . $word . "</li>\r\n";
> }
>
> echo "</ul>\r\n";
> ===
You could either swap that out for a simple
for loop or add in
an array_combine() call and sort like so:
foreach ($new_array_name as $word => $explanation)
--
</Daniel P. Brown>
Network Infrastructure Manager
Documentation, Webmaster Teams
http://www.php.net/