Jump to content

trim


canadabeeau

Recommended Posts

Hi guys,

I need help making a PHP script which will remove "new lines"

 

I have a page called text.php, I want index.php to read test.php and remove all the new lines so the page is all on one line.

 

test.php now

<?php
echo "aa";
$a = "bgaga";
echo $a;
?>

 

test.php wanted

<?php echo "aa"; $a = "bgaga"; echo $a;?>

Link to comment
https://forums.phpfreaks.com/topic/192013-trim/
Share on other sites

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.