I have a function like this:
function get_articles($c at=1,$numberpos ts=1);
it can be used:
get_articles(ca t=4&numberposts =6);
//will display 6 posts from category 6
then I want to use that function within another function, like this:
function display_cat($ne w_cat=1,$new_nu m=1,$otherconte nt="")
{
get_articles(ca t=$new_cat&numb erposts=$new_nu m)
.......
}
Can I pass function like this ?
function get_articles($c at=1,$numberpos ts=1);
it can be used:
get_articles(ca t=4&numberposts =6);
//will display 6 posts from category 6
then I want to use that function within another function, like this:
function display_cat($ne w_cat=1,$new_nu m=1,$otherconte nt="")
{
get_articles(ca t=$new_cat&numb erposts=$new_nu m)
.......
}
Can I pass function like this ?
Comment