Welcome Guest, Not a member yet? Register   Sign In
Just gotta love theory... Why aren't these two stmts doing the same thing?
#1

[eluser]stormbytes[/eluser]
What can I say? I love wrapping my head around concepts & the underline 'guts', rather then being all about monkey-see-monkey-copy/paste.

Below are two statements which, imho, should do exactly the same thing! Yet one works, and one does not. I'd love to hear from a CI-guru (even if this isn't a CI-question) what the practical difference is in how each is evaluated.

Statement # 1:
Code:
$prefix = isset($config['_prefix']) ? $config['_prefix'] : '';

Statement #2:
Code:
$prefix = isset($config['_prefix']) OR '';


Messages In This Thread
Just gotta love theory... Why aren't these two stmts doing the same thing? - by El Forum - 10-24-2010, 01:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB