You can try playing around with the Snippet functionality of Sublime Text. Here's a sample to get you started.
<snippet>
<content><![CDATA[
<?php echo ${0:my_function}("${SELECTION}"; ?>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- <tabTrigger>hello</tabTrigger> -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>