mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 04:27:14 +01: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){
|
||||
#search defined dividers
|
||||
//#search defined dividers
|
||||
preg_match_all ("|%(.+)%|U", $template, $template_matches);
|
||||
#replace dividers with "real dividers"
|
||||
//#replace dividers with "real dividers"
|
||||
$template = preg_replace ("|%(.+)%|U", "(.+)", $template);
|
||||
#search matches
|
||||
//#search matches
|
||||
preg_match ("|" . $template . "|", $string, $string_matches);
|
||||
#[template_match] => $string_match
|
||||
//#[template_match] => $string_match
|
||||
foreach ($template_matches[1] as $key => $value){
|
||||
$output[$value] = $string_matches[($key + 1)];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user