Re: Tracking down the elusive "expecting T_PAAMAYIM_NEKUDOTAYIM"

From: Date: Wed, 14 May 2008 21:04:57 +0000
Subject: Re: Tracking down the elusive "expecting T_PAAMAYIM_NEKUDOTAYIM"
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-274340@lists.php.net to get a copy of this message
Daniel Brown wrote:
<?php
    foreach($set as $key => $value) { // You just missed the $ before value.
?> This seems to be the culprit.
    Also, check this line:
<?php
         if  (array_key_exists($key,$this->titles)
?>
    You're missing a ')' to close the if() statement.  It's not
causing this problem, but it will cause a problem afterward.
Thanks for catching that.

« previous php.general (#274340) next »