partial function application php