Hodicska Gergely wrote:
> Hi!
>
> > Would this work the same for multidimensional arrays?
> Encoding was a special feature needed by me, maybe you don't need it.
> Usage:
> myArray = array(...);
> echo ''.arrayToJsArray($myArray, 'myArray').'';
>
> Felho
>
> --- 8< --- arrayToJsArray.php --- 8
Hodicska Gergely wrote:
> trigger_error('Hoppa, egy új típus a PHP-ben?
> '.__CLASS__.'::'.__FUNCTION__.'()!', E_USER_WARNING);
on that line, what is the error you are trying to catch? I can't read what
ever language that is ;-) thanks.
-Nick Peters
--
PHP General Maili
Hi!
> Would this work the same for multidimensional arrays?
Encoding was a special feature needed by me, maybe you don't need it.
Usage:
myArray = array(...);
echo ''.arrayToJsArray($myArray, 'myArray').'';
Felho
--- 8< --- arrayToJsArray.php --- 8< ---
function arrayToJsArray( $array, $name,
Nick Peters wrote:
Marek Kilimajer wrote:
Nick Peters wrote:
Hey,
i know this probally a simple question, but it has been stumping me for
quite some time now. How do i pass a php array to a javascript?
i tryed:
var myarray = new Array();
but it didn't work. Anybody got any
Marek Kilimajer wrote:
> Nick Peters wrote:
>> Hey,
>>
>> i know this probally a simple question, but it has been stumping me for
>> quite some time now. How do i pass a php array to a javascript?
>>
>> i tryed:
>>
>> var myarray = new Array();
>>
>>
>> but it didn't wo
Nick Peters wrote:
Hey,
i know this probally a simple question, but it has been stumping me for
quite some time now. How do i pass a php array to a javascript?
i tryed:
var myarray = new Array();
but it didn't work. Anybody got any ideas?
thanks in advance.
For integers and
i know this probally a simple question, but it has been stumping me for
quite some time now. How do i pass a php array to a javascript?
i tryed:
var myarray = new Array();
but it didn't work. Anybody got any ideas?
You need to generate the javascript array from your PH
Hey,
i know this probally a simple question, but it has been stumping me for
quite some time now. How do i pass a php array to a javascript?
i tryed:
var myarray = new Array();
but it didn't work. Anybody got any ideas?
thanks in advance.
--
-Nick Peters
--
PHP Gener
8 matches
Mail list logo