Forum Moderators: coopster

Message Too Old, No Replies

Associative array()

arrays is a cryptic topic !

         

anshul

6:21 am on Jun 14, 2005 (gmt 0)

10+ Year Member



I've two arrays $template_vars_keys and $template_vars_ I wanna create a third array $template_vars with associative nature containing keys from first array and values from second array. Please help me.

anshul

7:21 am on Jun 14, 2005 (gmt 0)

10+ Year Member



Perhaps array_combine($template_vars_keys, template_vars_) do this, but most people and I'm not using PHP 5!

grandpa

7:29 am on Jun 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi anshul

There are several examples cited on the array_combine [us2.php.net] page that are useful for PHP versions below 5. Will one of those work?

anshul

7:47 am on Jun 14, 2005 (gmt 0)

10+ Year Member



Thanx, solved that problem.
Interesting to note many times, users' notes make PHP manual an ultra edition; why they don't let it download with the same!

coopster

1:03 pm on Jun 14, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



The user-contributed notes are indeed included in the downloaded docs [php.net].

anshul

6:46 am on Jun 20, 2005 (gmt 0)

10+ Year Member



Hi Coopster,
User-contributed notes are not included in downloadable HTML format. I'm also downloading CHM to check.

I've downloaded it from Osoft(!), it contained php_manual_en.xml What can I do of it?