I have this array:
array (size=2)
0 =>
array (size=1)
0 =>
object(stdClass)[1]
public 'username' => string '3adi jeddan' (length=11)
public 'userimage' => string 'file_4981.jpg' (length=13)
public 'date' => int 1373508347
public 'postid' => string '114' (length=3)
public 'type' => string 'comment' (length=7)
public 'notify' => string '1' (length=1)
1 =>
object(stdClass)[2]
public '1' =>
object(stdClass)[3]
public 'username' => string '3adi jeddan' (length=11)
public 'userimage' => string 'file_4981.jpg' (length=13)
public 'date' => int 1373508355
public 'postid' => string '114' (length=3)
public 'type' => string 'comment' (length=7)
public 'notify' => string '1' (length=1)
I need to change the value of notify from 1 to 0, but I can't any more. Please help me.
$array[0][0]->notify = "1"
? – DontVoteMeDown Jul 11 '13 at 11:59echo $array[0][0]->username;
should work have u tried ? – Prix Jul 11 '13 at 12:02