Saturday, 15 May 2010

php - Do I use a function here? -


I currently have two php files which are set to equal 20 or more similar variables. What is the best way to strengthen it to follow the drought principle? Can I create a function in a third file? Or a class? What is the best practice in this situation?

Thank you!

You should create a square and then create many examples.

No comments:

Post a Comment