Skip to content

Instantly share code, notes, and snippets.

View mixxorz's full-sized avatar

Mitchel Cabuloy mixxorz

View GitHub Profile
@mixxorz
mixxorz / gist:691b107fdbb7b15dd899
Created March 10, 2015 11:17
PHP Arrays to JSON
<?php
// This is how you would declare arrays in PHP (version 5.4+)
$someArray = [
"first value",
"second value"
];
// PHP Arrays are apparently also hash maps/dictionaries/whatever
$person = [