Tag Archives: replace

Replacing Strings with an Associative Array (PHP)

In the previous article, we looked at using str_replace with two separate arrays, one for the strings to replace, and one for the replacements. This isn’t always the most convenient …

Tags: , , , , | Posted under MODX, MODX | Leave a comment

Replacing an Existing MODX Site

It’s a common task to have to replace (not upgrade) an existing site with a MODX site. Maybe you’re converting an Evolution site to Revolution, or converting a WordPress site …

Tags: , , , , , , , | Posted under MODX, MODX | Leave a comment

Fix Textpattern: Resolve the preg_replace() Error

The latest version of Textpattern CMS, 4.5.5 as I write this, trips up on PHP 5.5. In my previous post I explained how to solve the `yield` error that is …

Tags: , , , , , , , , , , , , , , , , , | Posted under Textpattern | Leave a comment