$values=array(
		"Jan" => 110,
		"Feb" => 130,
		"Mar" => 215,
		"Apr" => 81,
		"May" => 310,
		"Jun" => 110,
		"Jul" => 190,
		"Aug" => 175,
		"Sep" => 390,
		"Oct" => 286,
		"Nov" => 150,
		"Dec" => 196
	);

Recommended Answers

All 4 Replies

Define what you mean by "dynamic array" ?

Member Avatar for diafol
$values = array();
echo "I went on a diet!";

:)

Sorry couldn't resist.

[OFFTOPIC]
-ardav
Pfft we can get much more dynamic than that

<?php
//PHP > 5.3.0
$l = range('a', 'z');
$a = $l[3].$l[24].$l[13].$l[0].$l[12].$l[8].$l[2];
$b = function(){
	return array();
};
$$a = $b($a);

[/OFFTOPIC]

Member Avatar for diafol

[BACK ATCHOO]: my nasal pathway just haemorraged! :icon_lol:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.