I have several php files in directory, I want to replace a few words in all files with different text. It s a part of my code:
$replacements_table=
("hr_table", "tbl_table"),
( $users , "tbl_users")
foreach ($file in $phpFiles){
foreach($replacement in $replacements_table){
(Get-Content $file) | Foreach-Object{$_ -replace $replacement} | Set-Content $file
}
}
它对替换“薄板”的工作进行罚款,但总而言之,对用户来说,不工作。 任何建议都是 n。