Strictly triangular matrix for PHP