[mythtv-users] Mythweb problem

Chris Petersen lists at forevermore.net
Tue Jan 17 19:19:13 UTC 2006


> Is there an operator === in PHP ?
> 
> I found a line:
>         if ($key === 'offset') {
> in recording_schedules.php ?
> 
> It is not the reason for the problem, but anyway?

yes.  it means "equals, and of the same type".  In that case, if $key is 
zero, 'offset' is evaluated as an integer, which is also zero, so they 
match.  The === makes sure that 'offset' and $key are both the same type 
(int != string).

-Chris


More information about the mythtv-users mailing list