Skip to content

Instantly share code, notes, and snippets.

@iToto
Created September 11, 2013 18:54
Show Gist options
  • Save iToto/6528124 to your computer and use it in GitHub Desktop.
Save iToto/6528124 to your computer and use it in GitHub Desktop.
uuid json&msgpak sample
<?php
Route::get('uuid/{uuid}',function($uuid){
echo "UUID: $uuid \n";
$array = array(
'UUID' => $uuid
);
echo "Original Array:\n";
var_dump($array);
echo "JSON:\n";
var_dump(json_encode($array));
echo "MSGPAK:\n";
var_dump(msgpack_pack($array));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment