I am trying to learning something about PHP, and I don't know how to do it, something like this:
I have a string:
$text = 'This is your post number [postnumb], This is [postnumb], And this is your post number [postnumb].';
And with PHP I want to change the string [postnumb]
to the number of post:
$textchanged = 'This is your post number 1, This is your post number 2, This is your post number 3.';
Any help for me? Thanks.
[postnumb]
to equal 3 different values – Dagon Jan 28 '14 at 3:07