a better way for the array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,

I am wondering if there is a nicer way to save the data into an array than I do.

I do have a 2 dimensional array "$para".

Currently I go like this:

	$para[1][txt] 		= 'Europe'.$continent[name];
	$para[1][link] 		= '/'.$continent[name].'.htm';
	$para[1][title] 	= 'Europe - Continent overview';
	$para[2][txt] 		= $country;
	$para[2][link] 		= '/'.$continent[name].'.htm';
	$para[2][title] 	= $country;

That becomes really difficult if you have more of them, and you want to reorganize the ordering. Then you have to rename all numbers.

Is there a nicer way to do that?

Thank you for any hint,

Merlin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux