array_replace is PHP 5.3+