Jump to content

Removing whitespace from code


etrader

Recommended Posts

how to use this code? I have a set of php processes ending to a series of echo for strings.

 

I put this code at the beginning and at the end of the whole code, but no effect  :-[

Sorry, are you referring to the actual code, or the result of your code?

Image some string which get content from an external webpage and displaying them with echo. Now, there are lots of useless whitespace between the codes.

 

e.g.

$string1=file_get_content(http://external.com);
$string2 ='<some code>



</div>'
echo $string1;
echo $string2;

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.