KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In PHP I find myself writing code like this frequently: $a = isset($the->very->long->variable[$index]) ? $the->very->long->variable[$index] : null; Is there a simpler way to do this? Preferably one that doesn't require me to write $the->very->long->variable[$index] twice.
Tags (comma-separated)
Save Edits
Cancel