Re: [PHP] Re: Handling of constants in strings

2002-07-05 Thread Miguel Cruz
On Fri, 5 Jul 2002, Uwe Birkenhain wrote: > Miguel Cruz schrieb ... >> On Tue, 2 Jul 2002, Uwe Birkenhain wrote: >>> A question - since english is not my first language - what do you mean >>> with >>> It's not all that common to bury constants in strings >>> >>> Is something bad about it? >>

Re: [PHP] Re: Handling of constants in strings

2002-07-05 Thread Uwe Birkenhain
Miguel Cruz schrieb in Nachricht ... >On Tue, 2 Jul 2002, Uwe Birkenhain wrote: >> A question - since english is not my first language - what do you mean with >> >It's not all that common to bury constants in strings >> >> Is something bad about it? > >I think so. It would slow parsing down to a c

Re: [PHP] Re: Handling of constants in strings

2002-07-03 Thread Miguel Cruz
On Tue, 2 Jul 2002, Uwe Birkenhain wrote: > A question - since english is not my first language - what do you mean with > >It's not all that common to bury constants in strings > > Is something bad about it? I think so. It would slow parsing down to a crawl and create a host of ambiguities if ev

[PHP] Re: Handling of constants in strings

2002-07-02 Thread Uwe Birkenhain
Richard Lynch schrieb in Nachricht <20020701232114.VOAI6023.sccrmhc02.attbi.com@[192.168.1.103]>... > >Try this: >$my_string = "This is {MY_CONSTANT} and I love it!"; > >Can't promise it will work, mind you... > >It's not all that common to bury constants in strings... And is the extra " >. " K

[PHP] Re: Handling of constants in strings

2002-07-01 Thread Richard Lynch
>Hi, >when reading about constants (define('MY_CONSTANT', 'my value')) >I got convinced that they are pretty usefull. > >But now it seems to me, that I can't use them inside a string: >$my_string = "This is MY_CONSTANT and I love it!"; > >but that I must take them out: >$my_string = "This is" . MY