Jump to content

[SOLVED] carriage return in php


newtoall

Recommended Posts

Please help!!

 

I have a querry that returns a number of values the following code cats them together:

 

 
while ($obj = $result->fetch_object()) 
          {
    	      $desc = $desc.$obj->pdesc.chr(13);
           }

unfortunatly the chr(13) does not produces a line break between values as I expected.

 

So........ how can this bit of code be changed to include a line break??

 

Link to comment
https://forums.phpfreaks.com/topic/52563-solved-carriage-return-in-php/
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.