|
-
Sep 30th, 2007, 10:42 PM
#1
Thread Starter
Fanatic Member
Get an array of keys, values from Hash
Say I have an array $a = array('bob' => 'Robert', 'bill' => 'William'), how can I get an array of ('bob', 'bill') and an array of 'Robert', 'William'?
Thanks in advance.
Last edited by nebulom; Oct 1st, 2007 at 12:47 AM.
-
Sep 30th, 2007, 10:50 PM
#2
Thread Starter
Fanatic Member
Re: Get an array of keys, values from Hash
Nevermind, it's array_keys and array_values.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|