Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>php-snippetsNew to Visual Studio Code? Get it now.
php-snippets

php-snippets

Marijus Varnas

|
3,493 installs
| (0) | Free
https://github.com/m-varnas/php-snippets.git
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

snippets

Snippet Output
def define()
ifend if(): endif;
ifelseend if(): else: endif;
ifelseifend if(): elseif(): else: endif;
if if(){}
ifelse if(){}else{}
ifelseif if(){}elseif(){}else{}
foreachend foreach(): endforeach;
forend for(): endfor;
whileend while(): endwhile;
dowhile do while();
switch switch
$G $_GLOBALS['']
$se $_SERVER[""]
$r $_REQUEST[""]
$p $_POST[""]
$g $_GET[""]
$f $_FILES[""]
$e $_ENV[""]
$c $_COOKIE[""]
$s $_SESSION[""]
date date("",)
in include "";
req require "";
function function () {}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft