0

I have,

Hypertable_ThriftGen_HqlResult Object
(
  [results] => 
   [cells] => Array
      (
       [0] => Hypertable_ThriftGen_Cell Object
               (
                   [key] => Hypertable_ThriftGen_Key Object
                      (
                       [row] => abc.com
                            [column_family] => domain_name
                           [column_qualifier] => 
                         [timestamp] => 1.30189374164E+18
                         [revision] => 1.30189374164E+18
                           [flag] => 255
                        )
 [value] => www.abc.com
                )
)

How can I retrieve each individual values??

It seems like a json decoded array, not sure though.

1
  • 2
    Did you know if someone answers your question, you can (could) accept it? Commented Apr 4, 2011 at 7:43

1 Answer 1

2

You have an object and you can iterate over it like you iterate over array

foreach($yourobject->cells as $rows){
    foreach($rows as $row){
        print_r($row->key);
    }
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.