-> 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)
> {
>
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;
> }
>
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 /
3 matches
Mail list logo