Jump to content

[SOLVED] Trim the first line of a variable


PHPTOM

Recommended Posts

Hi,

Basically I have a huge multi-line variable and I want to trim the top line off it. Here is an example:

<?PHP
$var = "line1
line2
line3
line4";
?>

And I want it just to be

<?PHP
$var = "line2
line3
line4";
?>

 

The first line changes, so I cant do explode or anything.

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.