<?php $kod = ' - '; if ( preg_match('/kód SAM(?<digit>\d{3}?)/', 'cokoliv (kód SAM123)', $matches) ) {$kod = trim($matches['digit']);} echo $kod;
You have javascript disabled. You will not be able to edit any code.