Re: Tracking down the elusive "expecting T_PAAMAYIM_NEKUDOTAYIM"

From: Date: Wed, 14 May 2008 20:43:58 +0000
Subject: Re: Tracking down the elusive "expecting T_PAAMAYIM_NEKUDOTAYIM"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-274332@lists.php.net to get a copy of this message
On Wed, May 14, 2008 at 4:05 PM, Tyson Vanover <tvanover@pdx.edu> wrote: > I have a class that is throwing the error: > syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM ... You're using a Hebrew version of PHP? That means something along the lines of "two times the two marks" in Hebrew. However, in your case, you're checking the error on the wrong line. Look at your foreach() statement. It should instead read as follows: <?php foreach($set as $key => $value) { // You just missed the $ before value. ?> 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. -- </Daniel P. Brown> Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo.

« previous php.general (#274332) next »