Alex Rivera | Logout

Does this function have too many parameters?

Asked 2010-04-05T13:51:33.577
19

In the end, I got this function. I don't know whether it's normal or not.

function user_registration($user_name, $user_email, $user_pass, $address, 
                           $city, $postalcode, $country, $phone, $mobilephone)

How and why can I improve this?

Edit
Report

1 Answer

9

I personally don't think it has too many parameters. From looking at the functions definition it is clear what you require as input which wouldn't be so obvious if called with an array.

"If it aint broke don't fix it!"

answered 2010-04-05T13:59:19.453

Your Answer