hi Melanie

> From: mel list_php [mailto:[EMAIL PROTECTED] 
> My question is :
> 1/ the normal syntax into the brackets: with ", ' or nothing? 
> I think it 
> should be "" but I'm unsure.

Single quotes, but check out http://au2.php.net/types.string for details
why :)

> 2/it's working with other words wihtout the quotes (eg 
> $ownerId=$row_resultTask[ownerID];)
> is it because private is a reserved word or something? 

yep. PHP interprets any word it doesn't recognise as a constant, which
is why
it worked before.  

if you do this
<?php
error_reporting(E_ALL | E_STRICT);
echo something_not_defined;
?>

You'll get this:
Notice:  Use of undefined constant something_not_defined - assumed
'something_not_defined'

but if you change something_not_defined to a reserved word like private,
you'll get a parse error as you found. 


> any 
> idea where I 
> could find a list?

I don't know about a list as such, but http://www.php.net/manual/en/
will help.

Rob

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

Reply via email to