Never mind...kept digging and found an adequate answer in the post: "Convert an Array to String and back" which suggested the serialize() function. The resulting string is full of gobbledygook, but it will do for my purposes.
foreach($_SESSION[GROUPGRAPHARRAY][$gr][$test_number] as $testphase=>$kidscores)
{$phases[]=$testphase;}
$string=serialize($phases);
.....(& in the JpGraph code within a label element or CanvasGraph)....
$txt="$gr, $test_number, $string";
...shows me if I am getting closer to having the code set up correclty to actually display the graph.