How to handle array returned from PHP?

How to handle array returned from PHP?

Can anyone advise on how to parse returned data from a PHP script?
I've got jQuery sending form inputs via ajax to a PHP script, which operates on the inputs, pushes the results into an array, and sends back the array.
I want to plot the data, but I'm not sure what to do with what comes back ("data"); how to wrestle it into a JavaScript array that can be plotted.
----------------------------------------------------------------

My form has a few buttons & sliders & whatnot.  Values are sent off to PHP via ajax:
    var a = $("#a").slider('value');       etc.  
    var sendThis =  $("#theForm").serialize();
     $.post("my.php", sendThis, function (data) {   $('#someDiv').html(data);     });      //  so far so good.

Then, over at my.php:
<?php  
    $a = $_POST['a'];   etc. 
    $plotData = array();
     for ( $i=0; $i<10; $i++ ) {    
        $val = some operation on $a
        array_push($plotData, $val);
    }  
    print_r($plotData);               
?>

That works too & "#someDiv"  displays the array returned from my.php, but:
$.plot($("#showPlotHere"), [ plotData] );   just results in an empty plot.

I  got plotting working (using Flot) when the code is all in the jQuery page, not involving PHP.
Now I want PHP to do the calculations and just send back data to be plotted by Flot.

Maybe I need to create another array within jQuery (in the .post function) to receive the array from PHP?
How do I dump the returning "(data)" into some array in jQuery that I can operate on with $.plot?
This feels like something simple but I don't get it.

Thank you in advance for any pointers.