Create func.php

code func.php