Re: [PHP] searching an array

2002-10-29 Thread @ Edwin
Hello, Looking for this? http://www.php.net/manual/en/function.max.php - E "Davíð Örn Jóhannsson" <[EMAIL PROTECTED]> wrote: > I have a array called $arr[], it holds integer values, I don't know how > many indexes it holds and I need to be able to find out what the hash > ($arr[index]) > ho

Re: [PHP] searching an array

2002-10-29 Thread John Nichel
You could sort the values (ascending or descending), and select the first or last value (depending on how you sorted it). Davíð Örn Jóhannsson wrote: I have a array called $arr[], it holds integer values, I don’t know how many indexes it holds and I need to be able to find out what the hash ($ar

[PHP] searching an array

2002-10-29 Thread Davíð Örn Jóhannsson
I have a array called $arr[], it holds integer values, I don’t know how many indexes it holds and I need to be able to find out what the hash ($arr[index]) holds the largest value, is this possable, and if so how? Regards, David

RE: [PHP] searching an array for words starting with 'p'

2002-07-30 Thread Joseph Rosenblum
ED]] Sent: Tuesday, July 30, 2002 8:37 AM To: [EMAIL PROTECTED] Subject: [PHP] searching an array for words starting with 'p' Hi there, I am wondering how to search an array for words starting with a certain character. E.G: $word = array('alpha', 'beta', 'php&#x

Re: [PHP] searching an array for words starting with 'p'

2002-07-30 Thread Tech Support
try preg_grep() http://www.php.net/manual/en/function.preg-grep.php example: Jim Grill Support Web-1 Hosting http://www.web-1hosting.net - Original Message - From: "andy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 30, 2002 10:36 AM Subje

[PHP] searching an array for words starting with 'p'

2002-07-30 Thread andy
Hi there, I am wondering how to search an array for words starting with a certain character. E.G: $word = array('alpha', 'beta', 'php'); I would like to check if there is a word in the array starting with p Is there alrready a function for this? Thanx, Andy -- PHP General Mailing List (h