私はこのコードを持っています
if($hgroup['groupid'] == $row_groups['groupid']){
$problem++;
$hostname=DBfetch($cursor_gethost_again);
$replace_macro=array('/{HOSTNAME}/','/{HOST.NAME}/');
$problem_text=$problem_text.$trigger['description'];
$problem_text=preg_replace($replace_macro,$hostname['name'],$problem_text);
$problem_text=$problem_text."\r\n";
}
周期的に生成するコードです。誰かがその愚かな改行を作る方法を私に手伝ってもらえますか?1つのコードを変更しているので、この方法で行う必要があります。だから私はそのレイアウトを維持したいと思います。
動作しません。テキストで印刷します。また、preg_replaceをに試し<br />
ます。