Page 1 of 1

array javascript to array PHP

Posted: Tue Jan 19, 2010 12:03 am
by kyroolUnwar
Somebody help me...
I want to know how to do this...

<scrpt>
function go()
{
var arr = new Array();
:
:
:
return arr;
}
</script>

so... php function just call the javascript function...

<?php

$arr2 = "<script>go();</script>";

?>

Re: array javascript to array PHP

Posted: Tue Jan 19, 2010 9:23 am
by AbraCadaver
echo $arr2; wherever you want the function to execute.