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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:09:01+00:00 2026-06-12T23:09:01+00:00

I am using var_dump for printing a variable, named $info. Now I need to

  • 0

I am using var_dump for printing a variable, named $info. Now I need to print message_id as shown below, but the string is not getting print.

object(stdClass)[10]
  public 'date' => string 'Sun, 14 Oct 2012 19:45:26 +0100' (length=31)
  public 'Date' => string 'Sun, 14 Oct 2012 19:45:26 +0100' (length=31)
  public 'subject' => string 'deposit' (length=7)
  public 'Subject' => string 'deposit' (length=7)
  public 'message_id' => string '<CAKvS7sNb0Cb1AaAbCdEFGHerp5UyJuhfkcJj8P+8CZQj4VTGLA@mail.gmail.com>' (length=68)
  public 'toaddress' => string 'sbsa secretaccount <test@gmail.com>' (length=43)

I’m using this line,

echo $info->message_id;

Also if I try this,

$temp =  '<CAKvS7sNb0Cb1AaAbCdEFGHerp5UyJuhfkcJj8P+8CZQj4VTGLA@mail.gmail.com>';
echo "::$temp::";

Only :::: is getting printed, the $temp variable is ignored? Why?

  • 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-06-12T23:09:02+00:00Added an answer on June 12, 2026 at 11:09 pm

    You have an object, not an array. Use:

    echo $info->message_id;
    

    php.net – Objects

    In response to your second point – as the string is encapsulated in < and >, the browser will try and display this as HTML, if you view the source of the page, you will see that your $temp string is in there.

    You could use htmlentities() in order to convert the characters to HTML entities:

    echo htmlentites($temp);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Able to see a variable in print_r()'s output, but not sure how
I have seen some samples using var_dump, but I I would rather use a
When using var_dump on a string I get the return of string(12) 55″ .
using jquery's .post i send do my php code an object that with var_dump
I am using xdebug (php_xdebug-2.1.2-5.3-vc9.dll) on WAMP . When I use var_dump on a
using (var openFileDialog1 = new OpenFileDialog()) { openFileDialog1.Reset(); if (!string.IsNullOrEmpty(ExcelFilePath)) { string fileName =
I'm having some issue with var_dump.i'm using xampp 1.7.3 on windows. I think in
I'm using $_SERVER['HTTP_USER_AGENT'] to detect user's browser. When I run the var_dump on my
Var_dump result: object(stdClass)#2 (1) { [0]=> array(5) { [title]=> string(71) Tarihte Bugün Neler Olmuş?
I have got a 2d array called $myarray, and when I using var_dump($myarray), it

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.