<?php
$res = '';
$attributes = explode("||", 'черный==0||зеленый==0||салатовый==0||полированный==0||оранжевый==0||красный==0||белый==0');
foreach ($attributes as $value_attribute) {
if (!empty($value_attribute)) {
/* $fields = array(
'parameter_id' => $liid,
'attribute' => $value_attribute
); */
//$modx->db->insert($fields, $mod_table[2]);
//$res .= $value_attribute.'<br>';
$attributes_delimiter .= $value_attribute;
} else {
}
}
$vad = explode("==", $attributes_delimiter);
foreach ( as $value_attribute_delimiter) {
$res .= $value_attribute_delimiter;
}
echo $res;
- Output for 5.4.0 - 5.4.36
- Parse error: syntax error, unexpected 'as' (T_AS) in /in/EOgSJ on line 27
Process exited with code 255. - Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
- Parse error: syntax error, unexpected T_AS in /in/EOgSJ on line 27
Process exited with code 255. - Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
- Parse error: parse error, unexpected T_AS in /in/EOgSJ on line 27
Process exited with code 255. - Output for 4.3.2 - 4.3.4
- Parse error: parse error in /in/EOgSJ on line 27
Process exited with code 255.
preferences:
212.34 ms | 1395 KiB | 126 Q