Jump to content

Breaking up long line


doubledee

Recommended Posts

If I break up this long line of code will it still work correctly?

 

Original...

define('WEB_ROOT', ENVIRONMENT === 'dev' ? 'http://localhost/example.org/' : 'http://example.org/');

 

 

Desired...

define('WEB_ROOT', ENVIRONMENT === 'dev' 
? 'http://localhost/example.org/' : 'http://example.org/');

 

Or maybe...

define('WEB_ROOT', ENVIRONMENT === 'dev' 
? 'http://localhost/example.org/' 
: 'http://example.org/');

 

 

Debbie

 

 

 

Link to comment
Share on other sites

Oh, come on now; try it. The worst thing that can happen is you have to edit the file again to put it all on one line.

 

Guess I'll have to...

 

Just reading very carefully over what was said last night and trying to update my code and hoping I can make some progress early today...  *sigh*

 

 

Debbie

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.