RE: how to find

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

 



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@xxxxxxxxxxx] 
Sent: Thursday, November 11, 2004 6:17 AM
To: php-db@xxxxxxxxxxxxx
Subject: Re:  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@xxxxxxxxxxxxxx> wrote in message
news:6.1.2.0.0.20041111124528.019e2e20@xxxxxxxxxxxx
> 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

-- 
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