Re: Tracking down the elusive "expecting T_PAAMAYIM_NEKUDOTAYIM"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 14, 2008 at 5:43 PM, Daniel Brown <parasane@xxxxxxxxx> wrote:
> On Wed, May 14, 2008 at 4:05 PM, Tyson Vanover <tvanover@xxxxxxx> 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?

not necessary should be  the hebrew PHP version.
by definition even in the english version T_PAAMAYIM_NEKUDOTAYIM is
used to name "::"



>
>    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.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
Los sabios buscan la sabiduría; los necios creen haberla encontrado.
Gabriel Sosa

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux