Hi Haseeb,

> i.e. divide the functions into files. and then include
> only that file that has the function.

That's how I usually do it - for example, I have a file called
"dates.lib.php" which contains all my functions for handling dates and
times, a file called "db.lib.php" which has my database stuff, etc etc.

You may also want to look into classes, which provide a neat way to
compartmentalise your code. Personally I don't find them very useful unless
the project is large or has many programmers, though.

Cheers
Jon


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to