Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>PHP Snippets VS CodeNew to Visual Studio Code? Get it now.
PHP Snippets VS Code

PHP Snippets VS Code

Heber Almeida

|
75,622 installs
| (1) | Free
https://github.com/heberalmeida/php-snippets
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