Re: Fatal error: Function name must be a string
- From: "Steve" <googlespam@xxxxxxxxxxxxx>
- Date: 22 Sep 2005 03:12:15 -0700
> > 06: if ($rpool{'pgod'}<=$godina and $rpool('kgod')>=$godina){
>
> OK, but isn't " $rpool{'pgod'}" a syntax error; shouldn't it be "
> $rpool('pgod') "?
Maybe in some other language, but in PHP we use square brackets for
array indices, thus:
if( ( $rpool['pgod'] <= $godina ) and ( $rpool['kgod'] >= $godina )
) ...
---
Steve
.
- Follow-Ups:
- Re: Fatal error: Function name must be a string
- From: Zeljko A.
- Re: Fatal error: Function name must be a string
- References:
- Fatal error: Function name must be a string
- From: sentinel
- Re: Fatal error: Function name must be a string
- From: Zeljko A.
- Re: Fatal error: Function name must be a string
- From: sentinel
- Re: Fatal error: Function name must be a string
- From: Zeljko A.
- Fatal error: Function name must be a string
- Prev by Date: Re: Fatal error: Function name must be a string
- Next by Date: Re: Basic PHP question...
- Previous by thread: Re: Fatal error: Function name must be a string
- Next by thread: Re: Fatal error: Function name must be a string
- Index(es):
Relevant Pages
|