ok so i know how to do this within theory but not how to code this one. i have within my page a {blah:6}. i know that if i want to call a static string i would do this
$replaced_content = str_replace("{blah}", $page_name, $page_content);
but the problem is that the number can be changed by the user to what ever number the user would like. the could choose {blah:3} or {blah:999}. So im not sure how to code this
my goal is to find the string then extract the number from it to use later, but still replace the string to what i need
example
{blah:3}
gets replaces to (3 times)
<li></li>
<li></li>
<li></li>
any help would be very appreciated. I have been searching for the answer on my own but i have come up dry