Page 1 of 1

PHP hashmap

Posted: Mon Nov 27, 2006 12:42 am
by ofermisk
Hi,
I come from the It world, especialy java.
I discovered PHP by mistake, and up to now, it was a sweet mistake :D .
However, i need your help with something :
Is there a java HashMap like PHP object?
I am not talking arrays or arrayLists, but hashMaps...

Thanks,

Posted: Mon Nov 27, 2006 12:50 am
by feyd
Unless I've misunderstood what a HashMap is, that's a basic array in PHP.

Posted: Mon Nov 27, 2006 5:30 am
by johno
feyd wrote:Unless I've misunderstood what a HashMap is, that's a basic array in PHP.
Yes it is unless you want an object as a key. Then you have to get your fingers into this.