is there any way i can mimic javascripts loose variable handling in php?
for example, in php i have to write
$instituteID = ( isset( $p['regInstituteName'] ) && isset( $p['regInstituteName']['ID'] ) ) ? $p['regInstituteName']['ID'] : null;
whereas in javascript this would condense to
instituteID = p.regInstituteName && p.regInstituteName.id || null;
doesnt seem like THAT much of a difference but it adds up
Basically.. no. There have been some proposals in the past, but they have been rejected.
Edit: You can optimize it in the case you are happy throwing
E_NOTICEerrors. But I’d recommend against that.