Untitled
public text v1 · immutable<?php
header("Content-type: text/plain");
function tms_match($str) {
preg_match('/\[TMS #(\d+)\]/', $str, $matches);
print_r($matches);
}
$tms_str = <<<END
[TMS #282]
END;
tms_match($tms_str);
?><?php
header("Content-type: text/plain");
function tms_match($str) {
preg_match('/\[TMS #(\d+)\]/', $str, $matches);
print_r($matches);
}
$tms_str = <<<END
[TMS #282]
END;
tms_match($tms_str);
?>