I'm trying to replace multipl occurences of "[nuber_goes_here]" in a string using preg_replace. $string = 'This is a sentence with a [25] in it.'; echo $string.''; $pattern = '/(\[)(\d+)(\])/'; $replacement = ' '.return_name(
Comment on this Question and Answer >>>
ASK A QUESTION
More functions PHP Questions
difference between fetch_array function & fetch_row functionHow do I return a value from a function?
What is a static variable within a function?
What is a function?
