I m using phplot (www.phplot.com) to generate some graphics, and i need to passa an Array like this one:
<?
$dados = array (
array(1, 233),
array(2, 280),
array(3, 20),
array(4, 0),
array(5, 334),
array(6, 473),
array(7, 356),
array(8, 386)
);
?>
But i need to include the file.php as an img something like this: <img src="file.php" />
I tried to use a $SESSION variable to send the file.php the array with the data.. i ve tried a LOT of things but it keeps saying that my array is invalid.. i tried so far:
$_SESSION['data'][] = array($i, $test[$i]);
$_SESSION['data'][$i] = $test[$i];
I have to send an array with the syntax i posted above to the function, but i cant make it work.
I dont know how is the correct syntax to create an array like that posted above, please help 🙁
thanx in advance.