From 947c3647a48f883a88f1fd58655e0534edd0ba3b Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Wed, 30 Nov 2022 17:59:20 +0100 Subject: [PATCH] lib/php/nb.php --- lib/php/nb.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/php/nb.php b/lib/php/nb.php index 59291271..680383d4 100644 --- a/lib/php/nb.php +++ b/lib/php/nb.php @@ -194,10 +194,14 @@ class Nb { * Does what it says */ public static function ar_map($return,$array,$as_hash=false) { + $map = $array; + /* + # NB 30.11.22: Does not work get error message mb_strlen does not exists $map = array_map(function($a) use($return) { if (PHP_VERSION_ID>=70000) eval('$return='.$return.';'); return($return); },$array); + */ #$map = array_map(function($a) use($return) { $return = str_replace('$a',$a,$return); return($return); },$array); if ($as_hash) { -- 2.47.3