Skip to content

Instantly share code, notes, and snippets.

@hciudad
Created January 27, 2014 20:18

Revisions

  1. hciudad created this gist Jan 27, 2014.
    22 changes: 22 additions & 0 deletions gistfile1.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    // This actually works
    $my_array = array(
    'foo' => <<< FOO
    It's time for
    some foo, baby!
    FOO
    ,
    'bar' => <<< BAR
    Now let's bar it up.
    BAR
    ,
    'hello' => 'world'
    );

    print_r($my_array);
    // Array
    // (
    // [foo] => It's time for
    // some foo, baby!
    // [bar] => Now let's bar it up.
    // [hello] => world
    // )