Pascals Triangle in PHP
Compute Pascal's triangle up to a given number of rows.
1  exercism fetch php pascalstriangle

Pascal's Triangle
Compute Pascal's triangle up to a given number of rows.
In Pascal's Triangle each number is computed by adding the numbers to the right and left of the current position in the previous row.
Running the tests

Go to the root of your PHP exercise directory, which is
<EXERCISM_WORKSPACE>/php
. To find the Exercism workspace run1
% exercism debug  grep Workspace

Get PHPUnit if you don't have it already.

Execute the tests:
1
% ./phpunit.phar pascalstriangle/pascalstriangle_test.php
Source
Pascal's Triangle at Wolfram Math World http://mathworld.wolfram.com/PascalsTriangle.html
Submitting Incomplete Solutions
It's possible to submit an incomplete solution so you can see how others have completed the exercise.