in reply to Variable scope in ternary ?: operator not propagating?

$foo = localtime() . " hello" || "FAILED!";