Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $y = explode(' ',$x);
- $c=count($y);
- for($i=0;$i<$c;$i++) {
- $q=0;
- for($j=0;$j<$c;$j++){
- if($i==$j&&!($j==($c-1))){
- $j++;
- if($i==$j&&($j==($c-1))){
- $i++;
- $j=0;
- if($i==$j&&($i==($c-1))&&($j==($c-1))){
- echo "to koniec obliczania";
- } } }
- else{
- if($y[$i]==$y[$j]){
- $q++;
- /*/if($h[$i]==$y[$i]){
- $j++;
- } */
- }
- }
- }
- echo "$q ";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement