Re: Word Matching Application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 5, 2011 at 21:23, Ron Piggott
<ron.piggott@xxxxxxxxxxxxxxxxxx> 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/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux