I have this code below...but I also want to have multiple replacements. Like {userid} for example. How can I add multiple replacements to this line of code?
Code:
$test = @str_replace("{username}", $vbulletin->userinfo['username'], $message);
I tried doing a
Code:
$test = @str_replace("{username}", $vbulletin->userinfo['username'], $message);
$test = @str_replace("{userid}", $vbulletin->userinfo['userid'], $message);
but it didnt work, and still only outputted the userid and not both