Jump to content

Escaped characters not working


foucquet

Recommended Posts

I am trying to line up info using '\t', but it doesn't seem to be working at all. I have also tried several other escaped characters and none of them work either, any ideas?

 

Just to make sure I have got it right this is what I have done.

 

    echo "This image is the copyright of " . $copyright . " and may not be used without prior permission.<br /><br />";
      while( $field = each( $exifdata ) )
    {
       echo $field[ 'key' ];
       echo " -  \t"; //>>> Tab across to line everything up...
       echo $field[ 'value' ];
       echo '<br />';
}

Link to comment
https://forums.phpfreaks.com/topic/249892-escaped-characters-not-working/
Share on other sites

OK, that worked, thanks. Although it doesn't quite give the ouptput I want, it comes out like this:-

 

This image is the copyright of Alf Thomas and may not be used without prior permission.

 

Camera -  Canon PowerShot G9

Shutter -  1/800

fNo -  f/5.6

ISO -  200

Date -          07:10:2011

Time -          09:05:26

 

but I can play around with that and force it to comply with my needs in some way, and get the firsy line to wrap, and get an extra tab in the fNo and ISO lines...

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.