textarea mezera newline hodnoty
Kategorie: php

$pole = preg_replace("/\r|\n/", " ", $_POST['domeny']);
$pole = explode( ' ', $pole);
$pole = array_unique($pole);
$pole = (array_filter($pole, function($value) { return !is_null($value) && $value !== ''; }));


25.1.2021 17:46:19