2014-10-06, 08:54
How many records have your database? I test it only on 1000 records.
Thanks for help.
edit:
Your preg match pattern search include only a-Z characters without blank chars (space).
A better solution will be delete this condition. It only check entries in panels is not empty.
Code will be:
Thanks for help.
edit:
Your preg match pattern search include only a-Z characters without blank chars (space).
A better solution will be delete this condition. It only check entries in panels is not empty.
Code will be:
Code:
if (strpos($value, ' / ') !== false) {
foreach (explode(' / ', $value) as $val) {
if (!in_array($val, $panels_array[$column])) {
$panels_array[$column][] = $val;
}
}
} else {
if (!in_array($value, $panels_array[$column])) {
$panels_array[$column][] = $value;
}
}