<?php $contextA = ['browser_type' => 'chrome', 'browser_version' => null]; $contextB = ['browser_type' => 'chrome', 'browser_version' => '2.0']; $condition = function(array $context) { return !($context['browser_type'] == 'chrome' && $context['browser_version'] == '1.0'); }; echo 'Context A condition result: '.($condition($contextA) ? 'true' : 'false').PHP_EOL; echo 'Context B condition result: '.($condition($contextA) ? 'true' : 'false').PHP_EOL;
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`