Re: [PHP] foreach questions

2008-01-01 Thread Richard Lynch
-> is the Object operator. You want => which is used in foreach On Tue, January 1, 2008 1:47 pm, jekillen wrote: > Hello; > I have this section of code: > > @include('tmp_index.php'); > foreach($index as $key -> $value) >{ > if($input == $key) > { >

Re: [PHP] foreach questions OT

2008-01-01 Thread Børge Holen
On Tuesday 01 January 2008 20:47:18 jekillen wrote: > Hello; > I have this section of code: > > @include('tmp_index.php'); > foreach($index as $key -> $value) >{ > if($input == $key) > { >$target_file = $value; > } >

[PHP] foreach questions

2008-01-01 Thread jekillen
Hello; I have this section of code: @include('tmp_index.php'); foreach($index as $key -> $value) { if($input == $key) { $target_file = $value; } } And I am getting this error: Fatal error: Cannot access empty property in /