hi,

Sven wrote:

> take a look at http://www.php.net/manual/language.variables.php:
> "A valid variable name starts with a letter or underscore, followed by any number of letters, numbers, or underscores."
> so, a minus isn't allowed in varnames!
> hth SVEN



I agree with you but let me say the problem:
I'm parsing some XML documents, I'm not the writer of them and of DTD, who wrote them used some tags like: <REG-ORIG>
This is allowed in XML, but when I initialise varibles I need to use the same name of tags(also respect Case-sensitiveness).
This is a big compatibility problem, how can I do? I cannot change all the XML docs and the DTD.


bye
Alfredo

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



Reply via email to