Skip to content

Instantly share code, notes, and snippets.

@ismnoiet
Created August 13, 2014 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ismnoiet/1ecfdd2b43818910c887 to your computer and use it in GitHub Desktop.
Save ismnoiet/1ecfdd2b43818910c887 to your computer and use it in GitHub Desktop.
display php arrays in a nice form [write print_r($array) you get echo '<pre>'.print_r($array,true).'</pre>' which is nicer and cleaner to see
[
{
"args": null,
"command": "exit_visual_mode"
},
{
"args":
{
"commands":
[
[
"insert",
{
"characters": ",true"
}
],
[
"exit_insert_mode",
null
]
]
},
"command": "sequence"
},
{
"args":
{
"action_args": null,
"action_command": null,
"motion_args":
{
"extend": true,
"forward": true,
"visual": false
},
"motion_clip_to_line": false,
"motion_command": "vi_move_by_characters_in_line",
"motion_inclusive": false,
"motion_mode": 0
},
"command": "vi_eval"
},
{
"args":
{
"commands":
[
[
"move",
{
"by": "characters",
"forward": true,
"register": "\""
}
],
[
"insert",
{
"characters": ";"
}
],
[
"left_delete",
null
],
[
"insert",
{
"characters": "."
}
],
[
"insert_snippet",
{
"contents": "'$0'"
}
],
[
"insert",
{
"characters": "</pre>"
}
],
[
"exit_insert_mode",
null
]
]
},
"command": "sequence"
},
{
"args":
{
"action_args": null,
"action_command": null,
"motion_args":
{
"extend": true,
"repeat": 1
},
"motion_clip_to_line": true,
"motion_command": "vi_move_to_hard_eol",
"motion_inclusive": true,
"motion_mode": 0
},
"command": "vi_eval"
},
{
"args":
{
"commands":
[
[
"move",
{
"by": "characters",
"forward": true,
"register": "\""
}
],
[
"insert",
{
"characters": ";"
}
],
[
"exit_insert_mode",
null
]
]
},
"command": "sequence"
},
{
"args":
{
"action_args": null,
"action_command": null,
"motion_args":
{
"extend": true
},
"motion_clip_to_line": true,
"motion_command": "vi_move_to_first_non_white_space_character",
"motion_inclusive": false,
"motion_mode": 0
},
"command": "vi_eval"
},
{
"args":
{
"commands":
[
[
"insert",
{
"characters": "echo"
}
],
[
"insert",
{
"characters": " '<pre>"
}
],
[
"insert",
{
"characters": "'."
}
],
[
"exit_insert_mode",
null
]
]
},
"command": "sequence"
},
{
"args":
{
"action_args": null,
"action_command": null,
"motion_args":
{
"extend": true,
"repeat": 1
},
"motion_clip_to_line": true,
"motion_command": "vi_move_to_hard_eol",
"motion_inclusive": true,
"motion_mode": 0
},
"command": "vi_eval"
},
{
"args":
{
"by": "characters",
"forward": true,
"register": "\""
},
"command": "move"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment