You are here: Re: constant « PHP Programming Language « IT news, forums, messages
Re: constant

Posted by windandwaves on 01/21/06 11:35

Balazs Wellisch wrote:
>> define("a1", "b");
>> echo a1
>> $y = 1;
>> $x = "a".$y
>> echo contant($x);
>>
>> for the last line I get an error. How can I fix this?
>
> Just check your spelling and punctuation!
>
> define("a1", "b");
> echo a1;
> $y = 1;
> $x = "a".$y;
> echo constant($x);
>
> It works.
>
> Balazs

it was actually just an example. In real life it is not working! It is a
pretty old version of PHP, could that be it? It does recognise constant as
a function though. It was all rather weird.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация