Jump to content

Comples Array


Aaron_Taggert

Recommended Posts

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];

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.