2012-04-06 79 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