I have the following Code.
<?php
$user['username'] = 'Bastian';
$template = 'Hello {user:username}';
$template = preg_replace('/\{user\:([a-zA-Z0-9]+)\}/', $user['\1'], $template);
echo $template;
// Output:
// Notice: Undefined index: \1 in C:\xampp\htdocs\test.php on line 5
// Hello
I think, you know what i would do (i hope you know). I try to replace $user['$1'], $user["$1"] or $user[$1], Nothing Works!
I hope you can help my =) Thank you in Advance!