diff --git a/base.php b/base.php index ac52280..0a3ab44 100644 --- a/base.php +++ b/base.php @@ -742,6 +742,13 @@ function matches_comparing_expression($expr, $o_text, $debug=false) { echo '
'; } break; + case 'len': + case 'length': + case 'size': + $bool = false; + if (preg_match('/^(\<|\>)\=?\s*\d+$/', $content)) + eval('$bool = strlen($o_text) '.$content.';'); + break; } $result = str_replace($t, $bool ? 'true' : 'false', $result);