FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » define ('NL', "<br />"); can I define a constant var ?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: define ('NL', "<br />"); can I define a constant var ? [message #180184 is a reply to message #180179] Tue, 22 January 2013 22:51 Go to previous messageGo to previous message
Jrn Andersen is currently offline  Jrn Andersen
Messages: 2
Registered: January 2013
Karma:
Junior Member
On Tue, 22 Jan 2013 09:39:07 +0100, Arno Welzel <usenet(at)arnowelzel(dot)de>
wrote:

> With variables this would be easier though:
>
> $NL = '<br />';
> echo "This is $NL another line";

A question from someone relatively new to PHP:
Why use constants at all?
I always use variables - have I missed something?

Best,
Jørn, Copenhagen
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Passing complex data back when using cURL
Next Topic: my blog
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 11:18:45 GMT 2024

Total time taken to generate the page: 0.03913 seconds