📌  相关文章
📜  删除 PHP 代码示例中的特殊字符

📅  最后修改于: 2022-03-11 14:53:56.985000             🧑  作者: Mango

代码示例9
phpCopy 'Dave',
    'Dave' => ':name2 or :password',
    ':name2' => 'Steve',
    ':pass' => '7hf2348', ];
echo "\n" . strtr($strTemplate, $strParams) . "\n";
echo "\n" . str_replace(array_keys($strParams), array_values($strParams), $strTemplate) . "\n";


?>