Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
271 B
1
Indexable
Never
<?php

        $a = [[1,2], [3,4,4], [9,8,4,7,6], [14,27,39]];
        $b = 0;

        for ($i = 0; $i < sizeof($a); $i++) {
                for ($j = 0; $j < sizeof($a[$i]); $j++) {
                        $b += $a[$i][$j];
                }
        }

        echo $b;