You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
768 B
JSON

{
"simple-debugging": {
"prefix": ["cl", "bug"],
"body": "echo '<pre>' . var_dump(\\$${0:var}) . '</pre>';",
"description": "Simple debugging with var_dump()"
},
"echo-val": {
"prefix": "==",
"body": "<?= \\$${0:somevar} ?>",
"description": "PHP {{ }}-echo placeholder"
},
"if-else": {
"prefix": "if2",
"body": [
"<?php if (${1:condition}): ?>",
"\t${2}",
"<?php else: ?>",
"\t${0}",
"<?php endif ?>"
],
"description": "<?php if-else construct ?>"
},
"for-each": {
"prefix": "fe2",
"body": [
"<?php foreach (\\$${1:variable} as \\$${2:key} => \\$${3:value}): ?>",
"\t${0}",
"<?php endforeach ?>"
],
"description": "<?php for-each construct ?>"
}
}