PHP
- 2 ответа
- 0 вопросов
1
Вклад в тег
$filter = array();
if ($this->checkPosition('filter1') AND strlen($this->renderPosition('filter2')) > 2) {
$filter[] = trim($this->renderPosition('filter1'));
}
if ($this->checkPosition('filter2') AND strlen($this->renderPosition('filter2')) > 2) {
$filter[] = trim($this->renderPosition('filter2'));
}
if ($this->checkPosition('filter3') AND strlen($this->renderPosition('filter3')) > 2) {
$filter[] = trim($this->renderPosition('filter3'));
}
$vid = implode('|', $filter);