<?php $description = 'some text {PID =340} {PID =357}'; echo implode(',', preg_match_all('~\{PID =\K\d+~', $description, $out) ? $out[0] : []);
You have javascript disabled. You will not be able to edit any code.