Re: What is a label?

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

 



They must mean labels as in "general naming convention rules for
programming"... Like not naming a variable/function "label" with a number at
the front.

Here's a page about variables:

http://www.php.net/manual/en/language.variables.basics.php

Variable names follow the same rules as other labels in PHP. A valid
variable name starts with a letter or underscore, followed by any
number of letters, numbers, or underscores. As a regular expression,
it would be expressed thus: '[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*'

But I agree though, it would be nice if "label" was defined somewhere
in the docs.

-- 
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