Quote:
Originally Posted by Chandler
HTML Code:
function onCreated()
this.scheduleevent(5, "removeImages", {300, 301});
function onRemoveImages(imageIndexs)
echo(temp.imageIndexs);
returns:
Doesn't transmit array types?
|
It passes them as separate params:
HTML Code:
function onCreated() {
this.scheduleEvent(1, "Test", {"param0", "param1"});
}
function onTest() {
echo(params[0]);
echo(params[1]);
}
Returns:
param0
param1
You can get around this by doing an array in an array:
HTML Code:
function onCreated() {
this.scheduleEvent(1, "Test", { {"param0", "param1"} });
}
function onTest() {
echo(params[0]);
}
returns:
param0,param1