Let's say I have this code:
if (md5($_POST[foo['bar']]) == $somemd5) {
doSomethingWith(md5($_POST[foo['bar']]);
}
I could shorten that down by doing:
$value = md5($_POST[foo['bar']];
if ($value) == $somemd5) {
doSomethingWith($value);
}
But is there any pre-set variable that contains the first or second condition of the current if? Like for instance:
if (md5($_POST[foo['bar']]) == $somemd5) {
doSomethingWith($if1);
}
May be a unnecessary way of doing it, but I'm just wondering.