2012-04-06 73 views

回答

0

串連人物再算上他們

<?php 
$x = 0; $b = 0; 
$char = ''; //define a variable to collect all the chars 
while ($x++ < 10) { 
    $char .= $item->zodziai[$b++]; //add to the char 
    echo $chars = $item->zodziai[$b++]; echo ' '; 
} 
echo strlen($char); //then count all the array combined 
?> 
+0

這比我想象的:)謝謝容易多了! – sdfgsdfg 2012-04-06 05:30:04

+0

@JonasJovaisas,如果我的答案有效,請不要忘記接受它作爲工作解決方案(點擊答案左側的小勾號),甚至投票。謝謝 – Starx 2012-04-06 05:31:24