View Single Post
Old 09-10-2006, 08:30 PM   #1 (permalink)
O~Snapple
Moderator Of The Year
 
O~Snapple's Avatar
 
Join Date: Jul 2006
Location: Cali Breeze
Posts: 716
Send a message via MSN to O~Snapple Send a message via Skype™ to O~Snapple
Default Number Factoring PHP Script HELP!!!

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
PHP Code:
<?php
$num 
'14' ;
$counter '1';

function 
factor($num $counter++ ){
         
"$num / $counter++";
        }
        
Factor();
?>

Can any one point me in the right direction with finishing this script???
I think im moving in the right direction.

~Snapple
__________________
The Real Truth
Epademik Emcee Esq. New Album The 3rd Finger is in Stores Now!
Snap Marketing Management and Consulting
O~Snapple is offline   Reply With Quote
Sponsored Links