Aaron_Taggert Posted June 11, 2013 Share Posted June 11, 2013 given: [Category] => Array ( [num] => 245 [name] => Local Entertainment [parent] => 101 [url] => Entertainment/cat_index_chicago_entertainment [city] => Chicago [children] => Array ( ) [alpha] => Array ( ) [city_key] => chicago ) [Categories] => Array ( [0] => 245 [1] => 340 ) [Filename] => collaboraction-13th-annual-sketchbook-review-doing-that-crazy-chicago-storefront-theater-thing [City] => chicago [Link] => /publish/Entertainment/cat_index_chicago_entertainment/collaboraction-13th-annual-sketchbook-review-doing-that-crazy-chicago-storefront-theater-thing.php [AuthorId] => 56055 [Byline] => Amy Munice [Images] => Array ( [***image1***] => Array ( [_erased] => 0 [caption] => The tale of young Werther, unlucky in love--"The Sorrows of Young Werther" [url] => /df65/51b7592a96cdf-collaboraction-13th-annual-sketchbook-review-doing-that-crazy-chicago-storefront-theater-thing-1.jpg [_vertical] => 1 ) [***image2***] => Array ( [_erased] => 0 [caption] => In "WeatherVane" the line blur between hunter and prey [url] => /df65/51b7592a96cdf-collaboraction-13th-annual-sketchbook-review-doing-that-crazy-chicago-storefront-theater-thing-2.jpg [_vertical] => ) [***image3***] => Array ( [_erased] => 0 [caption] => "Theater McGuiver" giving resourcefulness a good grin [url] => /df65/51b7592a96cdf-collaboraction-13th-annual-sketchbook-review-doing-that-crazy-chicago-storefront-theater-thing-3.jpg [_vertical] => ) [***image4***] => Array ( [_erased] => 0 [caption] => "Snapshot" - watching life unfold in moments [url] => /df65/51b7592a96cdf-collaboraction-13th-annual-sketchbook-review-doing-that-crazy-chicago-storefront-theater-thing-4.jpg [_vertical] => ) [***image5***] => Array ( [_erased] => 0 [caption] => "Shuffle Off" tells the tale of someone looking for the perfect life ending song [url] => /df65/51b7592a96cdf-collaboraction-13th-annual-sketchbook-review-doing-that-crazy-chicago-storefront-theater-thing-5.jpg [_vertical] => ) [***image6***] => Array ( [_erased] => 0 [caption] => "Price Point" proves even the lost American Dream can find a voice in song [url] => /df65/51b7592a96cdf-collaboraction-13th-annual-sketchbook-review-doing-that-crazy-chicago-storefront-theater-thing-6.jpg [_vertical] => ) [***image7***] => Array ( [_erased] => 0 [caption] => "Native American Princess" tells the story of elusive romantic dreams [url] => /df65/51b7592a96cdf-collaboraction-13th-annual-sketchbook-review-doing-that-crazy-chicago-storefront-theater-thing-7.jpg [_vertical] => 1 ) [***image8***] => Array ( [_erased] => 0 [caption] => Tinkerbell in a trashed Wonderland-- "The Most Delicious Little House for Beginners.." [url] => /df65/51b7592a96cdf-collaboraction-13th-annual-sketchbook-review-doing-that-crazy-chicago-storefront-theater-thing-8.jpg [_vertical] => 1 ) [***image9***] => Array ( [_erased] => 0 [caption] => "Hospital" gives us good laughs at the horror of a hospital stay [url] => /df65/51b7592a96cdf-collaboraction-13th-annual-sketchbook-review-doing-that-crazy-chicago-storefront-theater-thing-9.jpg [_vertical] => ) [***image10***] => Array ( [_erased] => 0 [caption] => A short sci-fi on dreams in "Everything is Permitted" [url] => /df65/51b7592a96cdf-collaboraction-13th-annual-sketchbook-review-doing-that-crazy-chicago-storefront-theater-thing-10.jpg [_vertical] => ) [***image11***] => Array ( [_erased] => 0 [caption] => [url] => /df65/51b7592a96cdf-collaboraction-13th-annual-sketchbook-review-doing-that-crazy-chicago-storefront-theater-thing-11.jpg [_vertical] => 1 ) [***image12***] => Array ( [_erased] => 0 [caption] => We meet a woman trapped for 300 years in "Darkness" [url] => /df65/51b7592a96cdf-collaboraction-13th-annual-sketchbook-review-doing-that-crazy-chicago-storefront-theater-thing-12.jpg [_vertical] => ) ) [SummaryImage] => /df65/51b7592a96cdf-collaboraction-13th-annual-sketchbook-review-doing-that-crazy-chicago-storefront-theater-thing-summary.jpg [FeatureImage] => /df65/51b7592a96cdf-collaboraction-13th-annual-sketchbook-review-doing-that-crazy-chicago-storefront-theater-thing-feature.jpg [Keywords] => [IsFeatured] => [IsFeaturedParent] => [IsFeaturedMain] => [IsGiftGuide] => [IsPublished] => 1 [Status] => Published [__WebRoot] => /home/admin/domains/lasplash.com/public_html/../public_html/ [__first:private] => 1 [__republish:private] => [Id] => 51b7592a96cdf [CreateDate] => 1370970410 [LastUpdated] => 1370972592 [IsLoaded] => 1 [UpdatedBy] => 56055 ) How would I output img url? The above is from print_r. I'd basically like to echo $content[image]; Quote Link to comment https://forums.phpfreaks.com/topic/279045-comples-array/ Share on other sites More sharing options...
Barand Posted June 11, 2013 Share Posted June 11, 2013 If you are going to use print_r(), put it between <pre>..</pre> tags. It makes it so much more legible. echo '<pre>', print_r($myarray, true), '</pre>'; Or, better still, use var_export($myarray) then others can copy it straight into their editor. Quote Link to comment https://forums.phpfreaks.com/topic/279045-comples-array/#findComment-1435414 Share on other sites More sharing options...
Aaron_Taggert Posted June 11, 2013 Author Share Posted June 11, 2013 If you are going to use print_r(), put it between <pre>..</pre> tags. It makes it so much more legible. echo '<pre>', print_r($myarray, true), '</pre>'; Or, better still, use var_export($myarray) then others can copy it straight into their editor. I´m not going to use print_r I´m going to use <img src="$Category"; but I can´t get it to work because I´m not pointing to the correct array item.. Quote Link to comment https://forums.phpfreaks.com/topic/279045-comples-array/#findComment-1435416 Share on other sites More sharing options...
Barand Posted June 11, 2013 Share Posted June 11, 2013 ok Quote Link to comment https://forums.phpfreaks.com/topic/279045-comples-array/#findComment-1435417 Share on other sites More sharing options...
trq Posted June 11, 2013 Share Posted June 11, 2013 I´m not going to use print_r I´m going to use <img src="$Category"; but I can´t get it to work because I´m not pointing to the correct array item.. But you come here, post gibberish and expect help? Quote Link to comment https://forums.phpfreaks.com/topic/279045-comples-array/#findComment-1435444 Share on other sites More sharing options...
cyberRobot Posted June 12, 2013 Share Posted June 12, 2013 I´m not going to use print_r I´m going to use <img src="$Category"; but I can´t get it to work because I´m not pointing to the correct array item.. Just to clarify, Barand was asking you to provide the output for the array using his version of print_r()...or using the function. The output provided in the original post is difficult to wade through when there are no line breaks. Also, it might be helpful to see the portion of your code which pertains to the topic at hand. What have you tried? Quote Link to comment https://forums.phpfreaks.com/topic/279045-comples-array/#findComment-1435524 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.