$string = '1.this is the first2.second3.and thethird';
$string = str_replace('??', '<br> ??', $string);
echo $string;
//output:
1.this is the first <br>
2.second <br>
3.and thethird
필요한 str_replace는 무엇입니까? 출력의 프리스트 번호에는 <br>
태그가 없습니다. 감사문자열 교체 문제
[preg_replace] (http://us.php.net/manual/en/function.preg-replace.php)가 필요합니다. – webbiedave