by Arnaud Tiérant | 2020-09-02 | development
namespace App\Model; use Symfony\Component\Serializer\Annotation\Context; $replaced = strtr("Hi @name. The weather is @weather.", ["@name" => "Arnaud", "@weather" => "cloudy"]); var_dump(replaced);