Update php.snippets

Add php template snippets.
This commit is contained in:
Nicklasos 2013-04-17 00:44:48 +03:00
parent 7ef5388ef9
commit 42168b1c17

View File

@ -9,6 +9,18 @@ snippet <?e
# this one is for php5.4
snippet <?=
<?=${1}?>
snippet ?=
<?= ${1} ?>
snippet ?
<?php ${1} ?>
snippet ?f
<?php foreach (${1:$vars} as ${2:$var}): ?>
${3}
<?php endforeach ?>
snippet ?i
<?php if (${1}): ?>
${2}
<?php endif ?>
snippet ns
namespace ${1:Foo\Bar\Baz};
${2}