<?php $str = 'dahazd %class% aiojdzn %attr% oij da %attr% eoijfze %attr%'; preg_match_all('/\%\w+\%/', $str, $data); var_dump($data); // preg_replace('', '', $str);
You have javascript disabled. You will not be able to edit any code.