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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:25:22+00:00 2026-05-22T15:25:22+00:00

Just starting with php and sorry if this is a newbie question but i’m

  • 0

Just starting with php and sorry if this is a newbie question but i’m having problems parsing a array.

I get this value(output of print_r($result);):

Array ( 
  [0] => stdClass Object ( 
       [Master_companyname] => Royal Bank of Canada 
       [ticker] => ry-t 
       [base_table] => Master 
       [base_field] => ticker 
       [set] => 
           [rendered] =>
              Companyname:
              Ticker:
              Companyname:
       [finder_element_1_Master_companyname] => Royal Bank of Canada 
       [field_names] => Array ( 
            [1] => finder_element_1_Master_companyname 
            ) 
       ) 
   )

I want to extract only ry-t but not sure how. Here’s what I tried

$result1 = implode('=>', $result);
print_r($result);

and

print (float)substr($result1, strpos($result1, "=")+1);

I studied a bit of java and python and I was trying to apply the same logic of converting it to a string and then splitting the text by a delimiting(in this case I thought “=>”).

  • 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-22T15:25:22+00:00Added an answer on May 22, 2026 at 3:25 pm

    You have to subscript the array member, and then the ticker property.

    echo $result[0]->ticker;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm just starting out with Paypal, so this is a newbie question. I've been
I am fairly proficient in PHP, but just starting out in ASP.Net and JSP/Java
Hi just starting to learn this language, more of a javascript/PHP guy... I can't
Hey guys, I'm just starting out with MySQL and PHP and have a question.
I'm just starting out, so please forgive if this is a silly question. I'm
I am just starting to learn a little about PHP; having trouble with the
I'm just starting PHP programming as you can tell. I want the results of
I am just starting to learn php, how would I initiate a echo statement
So I am just starting out developing PHP web applications and have finished setting
I'm just starting with Object Oriented PHP and I have the following issue: I

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.