iam not sure: is this the fastest way to check an array for an Value beginning with XXX ? And if yes, extract the value after XXX: ?
foreach ($result['tag'] as $value) {
$pos = strpos($value, 'xxx:');
if ($pos !== false) {
$split = explode('xxx:', $value);
$r = $split[1];
} else {
$r = '';
}
}
need to check
substrvsexplodeperformance !by replace 2 lines
with
i think the second is more elegant