Archive

- for March, 2008

Search in Key/ Index of an Associative PHP Array

I have to search in keys of associative PHP Array and not in value of an array. I want it to be fast as I need to search in long list and find something. PHP function array_search() search in array's value part. I got three methods which have provided working… (Continue)

Get Maximum Value from string Key PHP Array

I want to get the maximum value from an array and could not found suitable single function from PHP vast function library. I found max ($array1) function but it was not returning key’s value, which was important. Then I got second method after spending good amount of time. Actually I… (Continue)