Vielleicht ist es besser, sprintf()
zu verwenden
hier.
$string = "%s is the name of a recently formed company hoping to take over the lucrative hairdryer design %s.";
$teamName = "My Company";
$sector = "sector";
echo sprintf($string, $teamName, $sector);
// My Company is the name of a recently formed company hoping to take over the lucrative hairdryer design sector.
In Ihrer Datenbank speichern Sie $string
. Verwenden Sie sprintf()
um die Variablenwerte zu ersetzen.