RE: [PHP-DB] Letters loop
hi Miguel I wanna a do a for loop with letters, Is this possible? for ($i = 'A'; $i = 'Z'; $i++){ // code } you can, but it doesn't do what you think it should do. Apparently it gets to Z, restarts with AA, AB, AC etc and continues like that until it hits YZ. feck knows why :-/ hth (a bit) Rob -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] quotes/private
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