Change Log for the latest
XYplorer BETA version:
Code: Select all
v23.50.0019 - 2022-08-17 18:12
+ Scripting got a new function.
Name: Explode
Action: Maps a list onto an array.
Syntax: explode($array, list, [separator="|"], [flags])
$array: Bare variable name of the array (no square brackets).
list: List of items separated by separator.
separator: Separator of received list items. Defaults to |.
flags: e = skip empty
return: Number of items in the array.
Example:
explode($a, "a,b,c", ","); echo $a[0]; //a
explode($a, "a,,c", ","); echo implode($a); //a||c
explode($a, "a,,c", ",", "e"); echo implode($a); //a|c
+ Scripting got a new function.
Name: Implode
Action: Maps an array onto a list.
Syntax: implode($array, [$list], [separator="|"], [flags])
$array: Bare variable name of the array (no square brackets).
$list: Bare variable name of the list (no square brackets).
If omitted, the function returns the list.
separator: Separator of the returned list items. Defaults to |.
flags: e = skip empty
return: Number of items in the list, or the list itself if $list is omitted.
Example:
explode($a, "a,b,c", ","); $a[1] = "X"; echo implode($a); //a|X|c
explode($a, "a,,c", ","); echo implode($a); //a||c
explode($a, "a,,c", ","); echo implode($a,,, "e"); //a|c
* Scripting | Arrays | Foreach: Now the key variable is set to the numeric index
if you do 'foreach($array as $key => $value)' on an non-associative array:
$key="FOO"; $a = array("cat", "dog", "bat");
foreach($a as $key => $value) { //always overwrites $key
$b[$key] = "$key=$value";
}
text implode($b); //0=cat|1=dog|2=bat
! SC utf8encode: Failed with certain inputs, for example:
text utf8encode("Грузия"); //Ð“Ñ€ÑƒÐ·Ð¸Ñ = WRONG!
text utf8decode(utf8encode("Грузия")); //�?�?�?зия = WRONG!
Fixed:
text utf8encode("Грузия"); //ÐÑÑÐ·Ð¸Ñ = RIGHT!
text utf8decode(utf8encode("Грузия")); //Грузия = RIGHT!

To
update to this BETA version from XYplorer, hold down the
CTRL key while you click
Help | Online Support | Check for Updates. To
download it, choose a package: (1)
Installer Package, (2)
No-Install Package.
Note that BETA versions are work in progress and might contain fresh bugs. You have been warned. It's a good idea to backup your complete XYplorer settings (menu File | Settings Special | Backup Application Data Folder...) before running a new BETA version. This will also help in fixing any fresh bugs.