Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5955263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:05:20+00:00 2026-05-22T18:05:20+00:00

Below is the structure of a multidomensional array. How can I get the value

  • 0

Below is the structure of a multidomensional array. How can I get the value of “title” or any of the values within #object?

$content (Array, 2 elements)
    links (Array, 5 elements)
    body (Array, 16 elements)
        #theme (String, 5 characters )
        #weight (Integer)
        #title (String, 4 characters )
        #access (Boolean)
        #label_display (String, 6 characters )
        #view_mode (String, 6 characters )
        #language (String, 2 characters ) 
        #field_name (String, 4 characters )
        #field_type (String, 17 characters )
        #field_translatable (String, 1 characters )
        #entity_type (String, 4 characters )
        #bundle (String, 7 characters )
        #object (Object) stdClass
            vid (String, 2 characters )
            uid (String, 1 characters )
            title (String, 55 characters ) **THIS IS THE VALUE THAT I NEED**
            log (String, 0 characters )
            status (String, 1 characters )

The error that I get after implementing AJ’s solution is:

Notice: Undefined index: body in include() (line 84 of C:\wamp\www\sdnn_drupal\sites\all\themes\sdnn\node.tpl.php).
Notice: Trying to get property of non-object in include() (line 84 of C:\wamp\www\sdnn_drupal\sites\all\themes\sdnn\node.tpl.php).

line 84 of node.tpl.php is what AJ suggested:

<?php echo $content['body']['#object']->title ?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:05:20+00:00Added an answer on May 22, 2026 at 6:05 pm

    $title=$content['body']['#object']->title;

    But it also looks like it might be accessible at:

    $title=$content['body']['#title'];

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table T (structure below) which initially contains all-NULL values in an
Can anyone show me how to slice the structure below: [[1, A], [2, B],
Please find the below structure. When i click a button i need to get
It's possible to declare variables with the below structure in C++ private: public: protected:
I have a Zend Framework application structure as below: /application /library /Zend /Core /Filter
If I am using a tree structure of nodes similar to the code below,
Below is my $.ajax call, how do I put a selects (multiple) selected values
I am writing the below structure in to the file using Binary Writer. File
Given the table structure below, how do you project x and y only with
Using the table structure below how would I create a bcp bulk insert that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.