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
Post a Comment