RE: [PHP-DB] how to find
| From: | Norland, Martin | Date: | Thu, 11 Nov 2004 15:11:12 +0000 |
| Subject: | RE: [PHP-DB] how to find | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-37233@lists.php.net to get a copy of this message | ||
I think (hope) that Rene was just trying to emphasize that while this is
a php mailing list - it is focused on databases. An array full of 0's
and 1's - while certainly data - hardly constitutes that.
I suggest a 'for' loop using 'count()' of the array, or perhaps
'array_walk()'. Store the keys in some temp variables/etc.
That said. http://www.php.net/docs.php - they have a handy
search there.
In addition, you can download the documentation - and if you're using
windows, I recommend getting the chm version available here
http://www.php.net/download-docs.php
Keep on plugging, you'll pick it up!
- Martin Norland, Database / Web Developer, International Outreach x3257
The opinion(s) contained within this email do not necessarily represent
those of St. Jude Children's Research Hospital.
-----Original Message-----
From: peppe [mailto:peppe1001@hotmail.com]
Sent: Thursday, November 11, 2004 6:17 AM
To: php-db@lists.php.net
Subject: Re: [PHP-DB] how to find
I really don't understand why people like you respond on questions do
you want to make yourself interesting . I'm new to php and I'm trying to
learn something that's why I mail in newsgroup but please please do not
insult and do not respond any more if you think people are asking stupid
questions
"-{ Rene Brehmer }-" <metalbunny@metalbunny.net> wrote in message
news:6.1.2.0.0.20041111124528.019e2e20@localhost...
> 1. learn the basics of arrays
> 2. RTFM
>
> At 12:27 11-11-2004, peppe wrote:
> >Hi ,
> >I have numbers in my array
> >0 0 0 1 1 1 1 1 1 1 1 0 0 0 0
> >or
> > 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0
> >or
> > 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0
> >how can I find the first 1 and the last is there a function for it
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php