{
????// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
????// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
????// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
????// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
????// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
????// Placeholders with the same ids are connected.
????// Example:
????"ph": {
????????"prefix": "ph", // 觸發(fā)的關(guān)鍵字 輸入ph按下tab鍵
????????"body": [
????????????"<?php $1 ?>",
????????],
????????"description": "php components"
????},
????"php": {
????????"prefix": "php", // 觸發(fā)的關(guān)鍵字 輸入php按下tab鍵
????????"body": [
????????????"<?php",
????????????"$1",
????????????"?>",
????????],
????????"description": "php components"
????},
????"rs!": {
????????"prefix": "rs!", // 觸發(fā)的關(guān)鍵字 輸入rs?按下tab鍵
????????"body": [
????????????"<?php echo $$rs['$1']?>",
????????],
????????"description": "rs? components"
????},
????"rs": {
????????"prefix": "rs", // 觸發(fā)的關(guān)鍵字 輸入rs按下tab鍵
????????"body": [
????????????"echo $$rs['$1'];",
????????],
????????"description": "rs components"
????},
????"v": {
????????"prefix": "v", // 觸發(fā)的關(guān)鍵字 輸入v按下tab鍵
????????"body": [
????????????"echo $$v['$1'];",
????????],
????????"description": "v components"
????},
????"ec": {
????????"prefix": "ec", // 觸發(fā)的關(guān)鍵字 輸入ec按下tab鍵
????????"body": [
????????????"<?php echo $1 ?>",
????????],
????????"description": "ec components"
????},
????"fo": {
????????"prefix": "fo", // 觸發(fā)的關(guān)鍵字 輸入fo按下tab鍵
????????"body": [
????????????"foreach($$rs as $$v){",
????????????"$1",
????????????"}",
????????],
????????"description": "fo components"
????},
????"pdo": {
????????"prefix": "pdo", // 觸發(fā)的關(guān)鍵字 輸入pdo按下tab鍵
????????"body": [
????????????"$$pdo=new pdo('mysql:host=localhost;dbname=news','root','');",
????????????"$$pdo->query('set names utf8');",
????????],
????????"description": "php components"
????},
????"stmt": {
????????"prefix": "stmt", // 觸發(fā)的關(guān)鍵字 輸入stmt按下tab鍵
????????"body": [
????????????"$$stmt=$$pdo->query($$sql);",
????????????"$$rs=$$stmt->fetchAll(PDO::FETCH_ASSOC);",
????????],
????????"description": "php components"
????},
????"va": {
????????"prefix": "va", // 觸發(fā)的關(guān)鍵字 輸入va按下tab鍵
????????"body": [
????????????"var_dump($1);",
????????],
????????"description": "v components"
????},
}