PHPから配列を取得し、ギャラリー関数にimagearrayを入力するにはどうすればよいですか?
$leftimages = $images->GetSlideShowImages($userid,$campaignid,$screenid,'midleft');
var phparray = <?php echo json_encode($leftimages) ?>;
$.each(phparray, function (i, elem) {
imagesarray.push(elem['image']);
});
var mygallery=new gallery({
wrapperid: "temp1_leftshow_f", //ID of main gallery container,
dimensions: [500, 300],
imagearray: [
["http://myimageurl1.jpg", "", "_new", "text1"],
["http://myimageurl2.jpg", "", "_new", "text2"],
["http://myimageurl3.jpg", "", "_new", "text3"],
],