When you read XML in php through simple xml class then at the time of integer value you need to type cast those value in "string", because
when you read through simple xml class object then he return the object(show through the var_dump).
Ex:
your XML look like -
now you want to read both ints tag value and add both value.
/*
$xml->load('abc.xml');
foreach($xml->a[0] as $abTagObj)
{
$ints[] = (String)$abTagObj->ints;
}
array_sum($ints); // show the total of all ints tag.
*/
but if you not type cast ints tag value as "string" then when you go for add then show the total as 0.
If still any question then pleases put your comment i will answer you. or any question regarding PHP, javascript, ajax, css, html, mysql put your comment feel free.
Subscribe to:
Post Comments (Atom)
1 comment:
米蘭情趣用品我情趣用品我情趣我飛機杯我自慰套我充氣娃娃我AV女優我按摩棒我跳蛋我潤滑液我角色扮演我情趣內衣我自慰器我穿戴蝴蝶我變頻跳蛋我無線跳蛋我電動按摩棒我情趣按摩棒我丁字褲我G點我SM我後庭
視訊美女我視訊做愛
網頁設計
我網頁我設計
Post a Comment