array javascript to array PHP

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
kyroolUnwar
Forum Newbie
Posts: 4
Joined: Mon Jan 18, 2010 9:45 pm

array javascript to array PHP

Post 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>";

?>
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: array javascript to array PHP

Post by AbraCadaver »

echo $arr2; wherever you want the function to execute.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Post Reply