2
我有數組:的preg_replace PHP KEY <-> VALUE
$array = array(
'/news/show/([0-9])/([0-9])'=>'/news/show/id/$1/id2/$2',
'/home/ayz/([0-9])'=>'/home/xyz/sid/$1'
);
我想結果是:
$array = array(
'/news/show/$1/$2'=>'/news/show/id/([0-9])/id2/([0-9])',
'/home/ayz/$1'=>'/home/xyz/sid/([0-9])'
);
怎麼辦呢?