Skip to content

Instantly share code, notes, and snippets.

@danielholmstrom
Created October 11, 2012 13:31
Show Gist options
  • Save danielholmstrom/3872284 to your computer and use it in GitHub Desktop.
Save danielholmstrom/3872284 to your computer and use it in GitHub Desktop.
<?php
$str =<<<XML
<?xml version="1.0">
<books>
<book/>
</books>
XML;
$parts = explode("\n", $str, 2);
$rest = $parts[1];
echo $rest;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment