Accessing element of object array


Posted on 16th Feb 2014 07:03 pm by admin

Hello

My object looks like this:

Did you know?Explore Trending and Topic pages for more stories like this.

Array ( [0] => User Object ( [id] => [username] => [password] => [title] => [firstname] => [surname] => [email] => [active] => [salt] => M}8 ) )


This is the result of a SQL method from my SQL class.


$result_array = self::find_by_sql($sql);


Can you please tell me how I can access the 'salt' element of the object array above ? I've been trying:

$result_array->salt

but that doesn't work.

Thanks for any assistance
No comments posted yet

Your Answer:

Login to answer
165 Like 39 Dislike
Previous forums Next forums
Other forums

Create or replace package is ending ORA-21700
Database 9.2.0., patch 8 (9.2.0.8.0).
I trying run
create or replace package ....etc.

PHP Include w/If IE Condition Statement?
I was having a problem with Internet Exploder (big surprise, right?) displaying my drop down menus i

Warning message
I've put a website that I was doing live and I'm getting this warning message when I try to add a ne

Number Format
Hi All,

I have number '000000000050085' I want to format it to 500.85 Can any one give me

xml element exists
Code: [Select]<?xml version="1.0"?>
<Addresses>
<

What makes a script your own?
If someone finds a login script online, and changes some variable names around and some other minor

Passing JS to PHP
So I have the following
Code: <?php
getdetails(?><script type="text/

Newb advice
Hi all,

I'm a flash front end designer and I've taken on a project that needs some back end p

selectbox+database connection retrive problem
Code: [Select]
<tr>
<th align="left" scope="c

OPINIONS WANTED
This is my login page code, and I want your opinion on it please!

Code: // Login ~ CHECKS

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash