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

Help, Base64 encoding url and decoding server side.
Hello everyone, i have a website with videos and games and also provide an embed code which people c

Recognising Revenue daily
Hello.
Has anyone come across daily recognition of deferred income?
We want to implement R

styling a RadioButtonList
HiI need to have a radio button and close to it, its lable, then a space then another set of those.

Help on code output
My CODE:

Code: [Select] echo "<phone>".$line["phone"].&qu

function to return url
Hi,

Can you guys help me giving a function that takes all the contents in a particular field

mail()
Hi all. I have a problem with emails. I am trying to set up a mail system where customers can subscr

Beginner PHP code help
Hi I'm new to php but if someone could please read the question below and help it would be great.

Php mysql - select?
Hi i have this code:
Code: $iteminfo = mysql_query("SELECT desc FROM wc_items WHERE itemid =

Packet Design
Hi All,
Im new about network programming and I want to design a protocol but I have some question

how to transport the Query and insfoset
Hi

I have created the query using SQ01........
How to created T-code for query..

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