mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-04-01 19:10:23 +02:00
Removed comment lines starting with #
This commit is contained in:
parent
2fa5758f26
commit
2107e986f6
@ -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)];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user