php - Can we find out which statement in an IF statement with multiple ORs was being passed? -


if have if-statement such as

`<?php if($data[1][0][1] == "aaa" || $data[2][0][1] == "bbb" || $data[1][0][2] == "ccc" || $data[2][0][2] == "ddd") {   $return_value = {the index array value being passed above};   echo "which portion in if statement or passed? , return value" . $return_value; }?>` 

can find out value being passed in or if-statement?

in if-statement, can not find out part true.

here more detail short-circuit evaluation


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -