Hi can i use a function this way: function determinant($mtrix, $n){ if ($n=1) { // do something } else { return aclcaulationssss*determinant($mtrix, $n-1); } } PHP:
YES, you can, it is called recurssion. Anyway, you could try using it instead of asking us. You would save some time wouldn't you?