Anonymous Anonymous - 1 month ago
150 0

get_array_nested_value

PHP

get_array_nested_value

$main_array = array(
				'literature' => array(
					'books'      => array(),
					'audiobooks' => array(
						'cd'  => array(),
						'mp3' => array()
					)// array 'audiobooks'
				),// array 'literature'

				'electronics' => array(
					'tv-video'  => array(),
					'computers' => array(
						'desktops' => array(
							'windows' => 'rao pc',
							'apple'   => 'JOE PC'
						),
						'laptops'  => array()
					)    // array 'computers'
				)// array 'electronics'
			);
			$keys_array = array(
				'electronics',
				'computers',
				'desktops',
				'windows',
			);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download