[ create a new paste ] login | about

Link: http://codepad.org/iuc5piWv    [ raw code | output | fork ]

PHP, pasted on Nov 24:
1
2
3
4
5
6
<?php

$text=strip_tags("5038135129483 &#xD;&#xAPck: 4 &nbsp; Plt: 120 itemcode:91");
$newtext = strstr($text,'Pck:');
echo $final = trim(str_replace('&nbsp;','',substr($newtext,0,stripos($newtext,'Plt:'))));
?>


Output:
1
Pck: 4


Create a new paste based on this one


Comments: