doubledee Posted April 23, 2011 Share Posted April 23, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/234510-breaking-up-long-line/ Share on other sites More sharing options...
Pikachu2000 Posted April 23, 2011 Share Posted April 23, 2011 Did you try it? Quote Link to comment https://forums.phpfreaks.com/topic/234510-breaking-up-long-line/#findComment-1205205 Share on other sites More sharing options...
doubledee Posted April 23, 2011 Author Share Posted April 23, 2011 Did you try it? No. I am afraid. (I asked because I'm jumping back into my file disaster, and didn't want a silly formatting decision to create an error and throw me off.) Debbie Quote Link to comment https://forums.phpfreaks.com/topic/234510-breaking-up-long-line/#findComment-1205206 Share on other sites More sharing options...
Pikachu2000 Posted April 23, 2011 Share Posted April 23, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/234510-breaking-up-long-line/#findComment-1205212 Share on other sites More sharing options...
doubledee Posted April 23, 2011 Author Share Posted April 23, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/234510-breaking-up-long-line/#findComment-1205220 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.