大文字に置換したところでリプライは飛ぶので @ → (at) への置換が一番妥当だと思います。 if(strpos($text,"{name}") !== FALSE){ if(!empty($reply)){ $text = str_replace("{name}",$reply->user->name,$text); }else{ $randomTweet = $this->getRandomTweet(); $text = str_replace("{name}",$randomTweet->user->name,$text); } } ↓ if(strpos($text,"{name}") !== FALSE){ if(!empty($reply)){ $text = str_replace("{name}", str_replace("@", "(at)", $reply->us
