Is it possible to obtain a variable from a parent function without declaring that function in parenthesis when calling the function (not possible in this instance).
function list_posts($filter_by_date){
/* Dome things to do first 8*/
function filter(){
/* Do something that involves the variable $filter_by_date */
}
}