I am looking to create a function that does a number of things...
Basically i want it to be able to do the following - all in one.
return 10 most recent posts
return posts between number x and number y
return posts sorted by item x
I realise i could do that if i tell it lots of different parameters each time.
but say if i call it with just : function();
i wanted it to default to returning the 10 most recent posts.
Is this possible in PHP? Would i have to make it an object and then do constructors? (not even sure if PHP4 supports constructors).
Thanks
Dougal