$aaa = preg_replace(‘/<%var.\$(fullname).%>/is’, $_SESSION[“\1”], $aaa);
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use preg_replace_callback instead:
Though I would be wary of where you’re getting the input string from: I would be wary if it’s coming from users (it looks like it might be coming from some kind of configuration or template file, though, which is probably OK).