Removed comment lines starting with #

This commit is contained in:
Xenomporio 2022-05-16 14:14:29 +02:00
parent 2fa5758f26
commit 2107e986f6

View File

@ -28804,13 +28804,13 @@ function ChargenMHDAuslagern($artikel, $menge, $lagerplatztyp, $lpid,$typ,$wert,
} }
function string2array ($string, $template){ function string2array ($string, $template){
#search defined dividers //#search defined dividers
preg_match_all ("|%(.+)%|U", $template, $template_matches); preg_match_all ("|%(.+)%|U", $template, $template_matches);
#replace dividers with "real dividers" //#replace dividers with "real dividers"
$template = preg_replace ("|%(.+)%|U", "(.+)", $template); $template = preg_replace ("|%(.+)%|U", "(.+)", $template);
#search matches //#search matches
preg_match ("|" . $template . "|", $string, $string_matches); preg_match ("|" . $template . "|", $string, $string_matches);
#[template_match] => $string_match //#[template_match] => $string_match
foreach ($template_matches[1] as $key => $value){ foreach ($template_matches[1] as $key => $value){
$output[$value] = $string_matches[($key + 1)]; $output[$value] = $string_matches[($key + 1)];
} }