473,395 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

access stdClass object called '$result'

Hello,

I have a stdClass object called '$result' like this:

Expand|Select|Wrap|Line Numbers
  1. stdClass::__set_state(array(
  2.    'return' => 
  3.   stdClass::__set_state(array(
  4.      'operationSuccessful' => true,
  5.      'userStatus' => 'A',
  6.      'validUser' => true,
  7.   )),
  8. ))
How can I access to operationSuccefull or userStatus?
I tried
Expand|Select|Wrap|Line Numbers
  1. $result->return->operationSuccefull 
and it didn't work.

Thanks

Rui Gonçalves
Jun 7 '11 #1
2 2855
Dormilich
8,658 Expert Mod 8TB
please define "didn’t work". does it give you an error, do you don’t get the output you assume?

well, try $result->return->operationSuccessful
Jun 7 '11 #2
Hello again,

Sorry for wasting your time (and mine as well), it was really a bad spelling error.
Expand|Select|Wrap|Line Numbers
  1. $result->return->operationSuccefull  
works.

Any way, thanks for such a quick reply.

Rui
Jun 7 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: red | last post by:
If I use PEAR to produce an accociative array from a mysql table, and display the array with print_r, it says it is an array and it displays values like a regular array: Array ( => 1 =>...
2
by: juglesh | last post by:
hello, i have a d/l'd class that gives an array which prints like this: stdClass Object ( ] => stdClass Object ( => text => => fisrt name => yes
0
by: Otis Hunter | last post by:
I have been fighting with this for days and your expert help is needed! Below is the code I am executing which results with "Object doesn't support this property or method". The error is occuring...
3
by: Tracey | last post by:
Hi, there I met a very wierd problem. My startup form say Form1 has a datagrid say datagrid1, when I click an item in datagrid1, I wanna show form2. In my code, I achieved that with: private sub...
4
by: Doru Roman | last post by:
Hi, I have a class MyClass and in the Button1_click() event I create an instance of that class MyClass myc = new MyClass(); In another event I want to access myc for serialization purposes....
2
by: Jayender | last post by:
Hi, I like to know whether is there any possibilty that accessing the COM object in my Code behind that is placed in aspx page? say the COM object is placed in <object tag, in aspx page and if i...
3
by: Brad | last post by:
I have several movies being presented to the web on a single page and each one is dependant on a link selected. On the .aspx page I have the following code for a single movie. ...
5
by: JamesG | last post by:
Hi, I have the following object, I need to extract the SysMessage property. stdClass Object ( =stdClass Object ( =Your consignment could not be found on our system ) ) I could do this:
0
by: Avi | last post by:
Hi experts, I have a function that needs to be public. However, I have a few objects in my system that I would want to prevent them from calling this function. Is it possible to know...
6
by: muckymuck | last post by:
Hello, i would like to know how i can get better output from a foreach. this code: $x = $wpdb->get_results("SELECT * FROM " . WP_PLAATJES); foreach ($x as $y) { print_r($y); var_dump( $y...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.