Will the inner bracket be executed first true?'t':'f' , it will return 't', which is a string
Now the external condition will be checked for echo ('True' ? 't' : 'False') . Here 'True' is a "non-empty string" (implicitly passed to TRUE), so it evaluates to true and returns "t".
The final code will be echo ('t') , which will just display t
source share