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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:35:18+00:00 2026-05-27T16:35:18+00:00

When I do a print_r on a php variable I get this. This is

  • 0

When I do a print_r on a php variable I get this.
This is for a web application i’m working on.

AMC Object
(
 [Player] => AMC_Player Object
    (
        [sourceObj:AMC_Player:private] => AMC Object
 *RECURSION*
        [videoList:AMC_Player:private] => Array
            (
                [0] => 33599
                [1] => 27922
                [3] => 33640
                [4] => 27919
                [5] => 33142
                [6] => 32343
                [7] => 33143
                [8] => 31437
                [9] => 27021
                [10] => 28157
                [11] => 29719
                [12] => 28142
                [13] => 18482
                [15] => 33794
                [16] => 33079
                [17] => 33799
                [18] => 28154
                [19] => 33104
                [20] => 28010
                [21] => 28398
            )

        [videoId:AMC_Player:private] => 
        [artistId:AMC_Player:private] => 
        [userId:AMC_Player:private] => 
        [userName:AMC_Player:private] => 
        [is_songpitches:AMC_Player:private] => 
    )

)

I’m attemping to get the values out of the videoList private variable.

How can this be accomplished?

  • 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-27T16:35:18+00:00Added an answer on May 27, 2026 at 4:35 pm

    Have a get function in the Player class

    class Player{
        ...
    
        function getVideoList()
        {
            return $this->videoList;
        }
    }
    

    And also a get function in the AMC class

    function getPlayVidList()
    {
         return $this->AMC_Player->getVideoList();
    }
    

    $myVidList = $AMC->getPlayVidList();

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

Sidebar

Related Questions

<?php print_r($response->response->docs); ?> Outputs the following: Array ( [0] => Object ( [_fields:private] =>
Is there a way to get PHP-like print_r(object) funcionality in iPython? I know I
So what I'm looking for here is something like PHP's print_r function. This is
ive got an object that looks like this with print_r(): SimpleDOM Object ( [0]
$jj_post is the array output debug via print_r() . This variable is an array
I have this array that I'm printing with this function in php: print_r($curriculos); Array
This topic is a remark for PHP get image src So we have a
I don't understand why doesn't this code work: <?php class Test { private $BIG
$_GET variable shows empty on the URL www.abc.com/ec/basket.php?product_id=1 . This is very surprising as
<?php echo ‘<pre>’; print_r(get_defined_vars()); echo ‘</pre>’; ?> This is just giving me the arrays

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.