foucquet Posted October 27, 2011 Share Posted October 27, 2011 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 />'; } Quote Link to comment https://forums.phpfreaks.com/topic/249892-escaped-characters-not-working/ Share on other sites More sharing options...
Kieran Menor Posted October 27, 2011 Share Posted October 27, 2011 This is probably more of a HTML issue. Try wrapping the output in <pre></pre>. Quote Link to comment https://forums.phpfreaks.com/topic/249892-escaped-characters-not-working/#findComment-1282622 Share on other sites More sharing options...
foucquet Posted October 27, 2011 Author Share Posted October 27, 2011 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... Quote Link to comment https://forums.phpfreaks.com/topic/249892-escaped-characters-not-working/#findComment-1282627 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.