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 with echo()
I'm having some problems with this code:

Code: echo '
<A HREF="jav

Shuffle between users ??
I have multiple $users in table. I need to send them $message.

I need to send the next messag

Storing Values taken from a DB...
Using this code it will generate a short list from my database

<?php
mysql_connect

noob question
i traying to do a php form with auto replay for both(me and the user who send me a mail),

a u

download directory onto C drive
I am attempting (if this is possible) to write a routine to automatically dump the contents of a dir

using variables in another page
I have a test database set up on localhost. I have a form that I can type a name into, hit the butto

FTP issues
Hi all,


I am currently facing some serious problems with a script and really need some ad

$_GET problem
Hi all,

Have a bit of a problem with a little piece of code, I am not sure if this should be

constructor ?
i have written this program and made 3 constructors in the class and i want to call them in the main

Namespace Problem
I'm having problem with a section of code with a variable namespace.

This code works fine:

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