Functional php post