Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Print_r PHP SnippetsNew to Visual Studio Code? Get it now.
Print_r PHP Snippets

Print_r PHP Snippets

Krishna Kanhaiya

|
384 installs
| (0) | Free
Print_r is a PHP snippet that will help you code faster.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Print_r is a PHP Snippets - VScode extension

VScode Snippets PHP8 PHP5 MIT

Features

PHP Tags

Shortcut Output
er er
ppe ppe
pp pp
ter $veriable = condition ? if_true : if_false;

Function

Shortcut Output
fn function functionName(){ ... }
fna function functionName(Type $args){ ... }

Array

Shortcut Output
ar ['value1', 'value2', 'value3', 'value4', 'value5'];
ark ['key1' => 'value1', 'key2' => 'value2', 'key3' => 'value3'];

Class & Interface

Shortcut Output
cc Doc Comment for Class
cl class ClassName{ ... }
cle class ClassName extends ParentClass{ ... }
cli class ClassName implements Interfaces{ ... }
clei class ClassName extends ParentClass implements Interfaces{ ... }
__c public function __construct(){ ... }
pf public function functionName(){ ... }
psf public static function functionName(){ ... }

Work with CSV

Shortcut Output
csvread Read Existing CSV file or from form.
csvdownload CSV file download from array.

Known Issues

If suggestions menu does not open, press Ctrl+space to open it manually.

Sometimes IntelliSense freezes loading or simply doesn't select the called snippet. Backspace and try again, it should work.

Release Notes

All notable changes to this project will be documented in CHANGELOG.md.

License

MIT License

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft