This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%skip space \s | |
%token bracket_ \( | |
%token _bracket \) | |
%token comma , | |
%token number (0|[1-9]\d*)(\.\d+)?([eE][\+\-]?\d+)? | |
%token plus \+ | |
%token minus \-|− | |
%token pow \*\* | |
%token times \*|× | |
%token percent % |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function array_diff_simple($a, $b) | |
{ | |
$r = array(); | |
foreach($a as $key => $val) { | |
if(!isset($b[$key])) { | |
$r[$key] = $val; | |
} else { | |
if(is_array($b[$key]) && !is_array($val)) { |