Re: What is a label?

From: Date: Wed, 13 Jul 2011 21:39:06 +0000
Subject: Re: What is a label?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-314043@lists.php.net to get a copy of this message
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.

« previous php.general (#314043) next »