Skip to content

Instantly share code, notes, and snippets.

@mgdm
Created May 25, 2012 15:43
Show Gist options
  • Save mgdm/2788861 to your computer and use it in GitHub Desktop.
Save mgdm/2788861 to your computer and use it in GitHub Desktop.
<?php
$str = "This
is
a
multi
line
string";
var_dump($str);
// Returns string(27) "This\nis\na\nmulti\nline\nstring"
/* Normal var_dump returns
string(27) "This
is
a
multi
line
string"
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment