Organizational Research By

Surprising Reserch Topic

Question:how to count on multidimentional arrays



asked Sep 13, 2013 in PHP by ashish singh
edited Sep 12, 2013
0 votes
7 views



Related Hot Questions

1 Answer

0 votes

 

  for($i = 0; $i < count($array); $i++) { 
      $detail = explode("|", $array[$i]); 
      echo "$i - $detail[0] - $detail[1]

"; 
      if($detail[1] == '1') { $wieoft1 = $wieoft1 +=1; } 
      if($detail[1] == '2') { $wieoft2 = $wieoft2 +=1; } 
      if($detail[1] == '3') { $wieoft3 = $wieoft3 +=1; } 
  } 
  echo ". $wieoft1 : $wieoft2 : $wieoft3"; 
?> 
 
looks not pretty fine yet works great for me. 
make it bigger for your own.
answered Sep 13, 2013 by ashish singh
edited Sep 12, 2013

...