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

  • SEARCH
  • Home
  • 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 6137461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:43:45+00:00 2026-05-23T17:43:45+00:00

UPDATE 4: print_r( $data ); returns the data I posted in the original question,

  • 0

UPDATE 4:

print_r( $data );

returns the data I posted in the original question,

but

print_r( $data->getAttributes() );

returns:

[namePerson/first] => Oshiro 
[contact/email] => oshiro.wanen@gmail.com 
[namePerson/last] => Wanan )

so it does not contain the data_identity I am after which is in $data

UPDATE 3:

It seems to have an getAttributes, so I tried:

$data -> data -> getAttributes('data_identity')

But get the error:

[Tue Jul 12 09:01:17 2011] [error] [client ::1] PHP Fatal error:  Call to a member function getAttributes() on a non-object in /var/www/page1.php on line 65

UPDATE 2:

I’ve tried both:

$data -> get('data_identity')
$data -> data -> get('data_identity')

both give the same error:

[Tue Jul 12 08:46:26 2011] [error] [client ::1] PHP Fatal error:  Call to a member function get() on a non-object in /var/www/page1.php on line 63

UPDATE 1:

If I do this:

$_SESSION['returned_array'] = array("id" => $openid);
print_r( $_SESSION['returned_array'] );

It returns the data as I have shown above.

However, doing this:

$_SESSION['returned_array'] = array("id" => $openid['data:protected']['data_identity']);
print_r( $_SESSION['returned_array'] );

give me:

[Mon Jul 11 19:52:38 2011] [error] [client ::1] PHP Fatal error:  Cannot use object of type LightOpenID as array in /var/www/page1.php on line 62

ORIGINAL QUESTION:

Using the following:

print_r( $data );

I get:

[returnUrl] => http://localhost/page1.php 
[required] => Array ( ) 
[optional] => Array ( ) 
[verify_peer] => 
[capath] => 
[cainfo] => 
[identity:Lightdata:private] => 
[claimed_id:Lightdata:private] => https://www.google.com/accounts/o8/id?id=349fj398sdhf9h94eiwujf9843e9f398 
[server:protected] => https://www.google.com/accounts/o8/ud 
[version:protected] => 2 
[trustRoot:protected] => http://localhost 
[aliases:protected] => 
[identifier_select:protected] => 
[ax:protected] => 1 
[sreg:protected] => 
[data:protected] => Array ( 
    [data_ns] => http://specs.data.net/auth/2.0 
    [data_mode] => id_res 
    [data_op_endpoint] => https://www.google.com/accounts/o8/ud 
    [data_response_nonce] => 2011-07-05T18:04:58Z1Ctdh8tsgmlLrw 
    [data_return_to] => http://localhost/page1.php 
    [data_assoc_handle] => AOQobUflA4349fj398sdhf9h94eiwujf9843e9f3988RCX4lIqE 
    [data_signed] => op_endpoint,claimed_id,identity,return_to,response_nonce,assoc_handle,ns.ext1,ext1.mode,ext1.type.namePerson_first,ext1.value.namePerson_first,ext1.type.contact_email,ext1.value.contact_email,ext1.type.namePerson_last,ext1.value.namePerson_last 
    [data_sig] => Z8OyG9w1349fj398sdhf9h94eiwujf9843e9f3982O/a349fj398sdhf9h94eiwujf9843e9f398iw= 
    [data_identity] => https://www.google.com/accounts/o8/id?id=349fj398sdhf9h94eiwujf9843e9f398
    [data_claimed_id] => https://www.google.com/accounts/o8/id?id=349fj398sdhf9h94eiwujf9843e9f398
    [data_ns_ext1] => http://data.net/srv/ax/1.0 
    [data_ext1_mode] => fetch_response 
    [data_ext1_type_namePerson_first] => http://axschema.org/namePerson/first 
    [data_ext1_value_namePerson_first] => Oshiro 
    [data_ext1_type_contact_email] => http://axschema.org/contact/email 
    [data_ext1_value_contact_email] => oshiro.wanen@gmail.com 
    [data_ext1_type_namePerson_last] => http://axschema.org/namePerson/last 
    [data_ext1_value_namePerson_last] => Wanen

How do I get the following value of the array only?

[data_identity]
  • 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-23T17:43:45+00:00Added an answer on May 23, 2026 at 5:43 pm

    The output seems to be that of an object, and not an array, and the attribute data is a protected one, thus you can’t access it without an accession function.

    In your object, there should be some function to get the contents of ['data']['data_identity'].

    Without a function, you can’t access it’s value, unless you are extending that class, then you can access it like parent::data['data_identity'].


    Update

    Based on the output and the class you are using, the data array seems to be used for the internal operations, however you can get the same value of data_identity via $data->identity

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

Sidebar

Related Questions

UPDATE I tried Crazy's solution but now I have problem showing data in a
Update: Check out this follow-up question: Gem Update on Windows - is it broken?
Update: giving a much more thorough example. The first two solutions offered were right
Update: Thanks for the suggestions guys. After further research, I’ve reformulated the question here:
Update: Please read this question in the context of design principles, elegance, expression of
update: the answer from virtualeyes (below) looks pretty nice: but now a bit code-sanititzing
I have following HTML table: <form method=post action=update-table.php> <table class=table-data style=width: 960px;> <thead> <tr>
I'm trying to make update form, that is going to retrieve the data for
I am getting my deptid like this $deptid=$_SESSION['deptid']; public function setSkillMatrix($data) { //return print_r($data,true);
UPDATE: I removed some print_r & echo tests I had above the loop and

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.