And a string like this: $str = ‘{$sender} sent you {$quantity} objects on {$date}’; I want to replace every {$variable} with $par[‘variable’] I know I have to use preg_replace() How can I do? Thanks
Autor
Wpisy
Wyświetlanie 1 wpisu (z 1 w sumie)
Temat ‘Replacing parameters in string’ jest zamknięty na nowe odpowiedzi.