1 2 3 4 5 6
<?php $text=strip_tags("5038135129483 
Pck: 4 Plt: 120 itemcode:91"); $newtext = strstr($text,'Pck:'); echo $final = trim(str_replace(' ','',substr($newtext,0,stripos($newtext,'Plt:')))); ?>
1
Pck: 4