cgm225 Posted June 12, 2007 Share Posted June 12, 2007 When I print this array I have (let's call it $image), I get the following... Printed output of $image array:: Array ( [FileName] => large_thumbnail-0.jpg [FileDateTime] => 1180739942 [FileSize] => 186845 [FileType] => 2 [MimeType] => image/jpeg [sectionsFound] => ANY_TAG, IFD0, THUMBNAIL, EXIF, INTEROP, MAKERNOTE [COMPUTED] => Array ( [html] => width="500" height="375" [Height] => 375 [Width] => 500 [isColor] => 1 [byteOrderMotorola] => 0 [CCDWidth] => 5mm [ApertureFNumber] => f/3.2 [userComment] => [userCommentEncoding] => UNDEFINED [Thumbnail.FileType] => 2 [Thumbnail.MimeType] => image/jpeg ) ) How would I echo just the "html" field? Thank you all in advance! cgm225 Quote Link to comment https://forums.phpfreaks.com/topic/55302-solved-echo-variable-in-array/ Share on other sites More sharing options...
chigley Posted June 12, 2007 Share Posted June 12, 2007 echo $image["COMPUTED"]["html"]; Quote Link to comment https://forums.phpfreaks.com/topic/55302-solved-echo-variable-in-array/#findComment-273361 Share on other sites More sharing options...
kenrbnsn Posted June 12, 2007 Share Posted June 12, 2007 <?php echo $image['COMPUTED']['html']; ?> Or were you looking for something more complicated? Ken Quote Link to comment https://forums.phpfreaks.com/topic/55302-solved-echo-variable-in-array/#findComment-273363 Share on other sites More sharing options...
cgm225 Posted June 12, 2007 Author Share Posted June 12, 2007 Thank you all so much! Quote Link to comment https://forums.phpfreaks.com/topic/55302-solved-echo-variable-in-array/#findComment-273376 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.