- var_dump: documentation ( source)
- preg_match: documentation ( source)
<?php
$pattern = '/(SKU-[^)]*)/i';
$license_name = "sing user license(SKU-123456) ";
$pos = preg_match($pattern, $license_name, $matches, PREG_OFFSET_CAPTURE, 3);
var_dump($matches);