Posted by william.clarke on 03/28/07 22:01
On Mar 28, 8:10 am, Krustov <m...@privacy.net> wrote:
> <comp.lang.php>
> <Jeff>
> <27 Mar 2007 14:24:26 -0700>
> <1175030666.462536.152...@y66g2000hsf.googlegroups.com>
>
> > $matches is an array that you can then access directly.
>
> > So you could do
>
> > foreach($matches as $year)
> > {
> > print "<br>- " . $year;
> > }
>
> > Changing the print to whatever you need to do.
>
> Array
>
> I tried something similar earlier tonight and like your own code the
> only thing it done was display Array .
>
> BTW: how can you find out how many matches are found .
try echo count($matches); This will tell you how many elements there
are in the array (which should be the number of matches).
[Back to original message]
|