Jump to content

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...

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.