Script for Factoring a number
Posted: Sun Sep 10, 2006 5:27 pm
Im trying to create a script that will Factor a Number,
here is what i have so far but i keep getting this error unexpected T_INC, expecting ')' on Line 5
Can any one point me in the right direction with finishing this script???
~Assured99
here is what i have so far but i keep getting this error unexpected T_INC, expecting ')' on Line 5
Code: Select all
<?php
$num = '14' ;
$counter = '1';
function factor($num , $counter++ ){
"$num / $counter++";
}
Factor();
?>~Assured99