حذف یک بخش از string در php

You can use str_replace(), which is defined as:

str_replace($search, $replace, $subject)

So you could write the code as:

$subject = 'REGISTER 11223344 here' ;
$search = '11223344' ;
$trimmed = str_replace($search, '', $subject) ;
echo $trimmed ;

منبع اصلی . اطلاعات بیشتر در : https://2ad.ir/wcGm61L