خانه 6 ‹ Forums ‹ طرف سرور ‹ جایگزینی پارامترها در رشته This topic has 0 replies, 1 voice, and was last updated 6 years, 3 months ago by آکادمی سی. Viewing 1 post (of 1 total) Author Posts 23 خرداد 1397 at 8:04 ق.ظ #306 آکادمی سیKeymaster کاربران عزیز، من آرایه ای مثل این دارم: $par['quantity'] = '10'; $par['sender'] = 'Peter'; $par['date'] = '12/12/2012'; و رشته هایی مثل این: $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() چگونه می توانم انجام دهم؟ سپاس Author Posts Viewing 1 post (of 1 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In