xmlrpc array problem
Posted: Mon Dec 15, 2008 10:13 pm
Hello all,
I am using xmlrpc-epi v. 0.51/PHP Version 5.2.8. My problem is really weird. I need return this array (don't ask why, it is just example):
here is my PHP code:
output is:
which is wrong. If somebody can help me, how to put INTEGERS as keys in output array, I will be really happy, or give me some help, I am really stuck. I tried double quotes, (string), strval and so on, I can not put any INT in output, I am not sure, if it is error of XMLRPC-EPI or...?
I am using xmlrpc-epi v. 0.51/PHP Version 5.2.8. My problem is really weird. I need return this array (don't ask why, it is just example):
Code: Select all
Array
(
[3387112] => 3387112
[3385570] => 3385570
)
Code: Select all
function foo() {
$in = array("3387112","3385570");
$data = array();
foreach($in as $value) {
$data[ (string) $value ] = "$value";
}
return $data;
}
Code: Select all
Array
(
[0] => 3387112
[1] => 3385570
)