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 5985789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:34:49+00:00 2026-05-22T22:34:49+00:00

I have a 2 dimensional array which is like that; $results[$i][$j]->title; $results[$i][$j]->snippet; $results[$i][$j]->link; It

  • 0

I have a 2 dimensional array which is like that;

$results[$i][$j]->title;
$results[$i][$j]->snippet;
$results[$i][$j]->link;

It is full with values. I have to use this variable with its values into a different page.
I try it with session but it gives errors.

How can I solve this problem?

Thanks for your help.

  • 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-22T22:34:49+00:00Added an answer on May 22, 2026 at 10:34 pm

    If you attempt to serialize the object within a session (as previously suggested) then remember that the member functions __sleep and __wakeup will automatically be called. Moreover, you will need to ensure that the constructor of the object’s class is available on the subsequent page. (This is a very common wall people run hit when trying to pass objects vis $_SESSION.)

    http://php.net/function.serialize

    See also:

    http://php.net/language.oop5.serialization

    Had you considered just extracting the object attributes you need and storing them as scalar values in an array? This would be easily storable via $_SESSION and would not require additional consideration.

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

Sidebar

Related Questions

I have this 4 Dimensional array to store String values which are used to
Supposing I have a 2 dimensional array which was created with something like this,
I have a two dimensional array that looks like this: TITLETYPE = [['Prof.', '4'],
I have a function which must return one dimensional associate array, like $user_info[$index]=value where
I have a variable called names which is a two dimensional array. I declared
Okay, I have a multi-dimensional array which is statically-allocated. I'd very much like to
i am using visual studio 2010. i have a three dimensional structure array which,
I have a multi-dimensional array, which basically consists of one sub-array for each year.
I have a 2-dimensional jagged array (though it's always rectangular), which I initialize using
I have an 2 dimensional array. I write 3 values into the array during

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.