Re: [PHP] Modifying arrays in place that are stdClass arrays

2009-04-06 Thread Jim Lucas
Lists wrote: Hello, I have not had a lot of opportunity to deal with stdClass objects in php. This should be a simple one. I have been plagued with failure for far too many hours, so I bring it to the more experienced. I have $result = imap_fetch_overview(...) which returns a large stdClass ob

Re: [PHP] Modifying arrays

2001-01-15 Thread Joe Stump
$array = array('foo','bar','hello'); for($i = 0 ; $i < sizeof($array) ; ++$i) { if($i == 1) { $array[$i] = 'not_bar'; } } Hope this helps! Also check out: http://www.php.net/manual/en/ref.array.php --Joe On Mon, Jan 15, 2001 at 01:19:56PM +0200, Catalin Borcea wr

Re: [PHP] Modifying arrays

2001-01-15 Thread bard
try this one.. seems to easy though. Maybe I'm missing something?? Cheers, Brad On Mon, 15 Jan 2001, Catalin Borcea wrote: > How do I modify the value of the current element of an array? > > -- Catalin Borcea -- > \\\|/// > \\ - - // >