2017-03-17 90 views

回答

1

您可以通過以下方式做到這一點...

查找\$_SESSION\['(.*?)'\]\['(.*?)'\]

\$this->Session->read('$1.$2');

看到regex demo/explanation

更換0
+0

感謝您的回覆。 find表達式工作正常,但用Replace this with $ this-> Session-> read('$ 1. $ 2');顯示en錯誤「替換爲字段包含無效表達式」。 – user2624107

+0

好的,我明白了。正確的替換表達式是\ $ this-> Session-> read('$ 1. $ 2'); – user2624107

相關問題