- print_r: documentation ( source)
- explode: documentation ( source)
- array_filter: documentation ( source)
<?php
$a = "|7|";
$a = array_filter(explode('|', $this->getData('website_id')), function ($el) {
if ($el != "") {
return true;
}
return false;
});
print_r($a);