Originally Posted by
RodG
The code
$title = str_replace('**', '', $title);
is there to remove "**" (if it exists) from the title string. If there isn't a '**' in the string it has no effect... In other words, it will be the same as the old code that reads 'title' => $title," so as long as you don't have '**' in the $title variable then all will be OK.
Now having said that, assuming what you posted here was a copy/paste I can now see the problem.
"$title = str_replace('**', '', $title);" should actually be
"$title = str_replace('**', '', $title),"
Note the difference between the semi-colon and the comma at the end of the code snippets. The comma is correct, the semi-colon is going to cause an error.
Cheers
Rod
Bookmarks