Silly mistake
Posted: Sun Dec 16, 2007 11:56 am
I'm loading up an array using a loop. It has two tiers, so two while loops using $i and $j. No prizes for guessing what this code does.
However all I get is an array of 0s. If I echo each term instead of assign it I get the correct output. I also know the array is being created correctly, the values are just not loading in for some reason. Any ideas what's going wrong?
Fred
Code: Select all
...
$C[$i][$j] = ($first*$fourth - $second*$third)/$determinant;
...Fred