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
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 dont know how
many indexes it holds and I need to be able to find out what the hash
($ar
I have a array called $arr[], it holds integer values, I dont 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
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
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
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
6 matches
Mail list logo