Php Declare Function In Sql