标签: php arrays
我有2个阵列,其目的是检查销售或租借的房屋,同样适用于公寓
问题在于它只能将房屋出售而不是出租甚至是公寓。
$accoTypes = ["house","apartment"]; $accoPrefers = ["sale","rent"]; foreach ($accoTypes as $accoType) { foreach ($accoPrefers as $accoPrefer) {