我有这个数组:
Array
(
[0] => CMS_ADMIN
[1] => CMS_ACADEMIC
[2] => CMS_FINANCE
[3] => HRM_HR
[4] => SRM_D
[5] => SRM_CNC
[6] => SRM_TM
[7] => SRM_DE
)
我想通过使用提供的单词搜索数组值来获取数组。假设我只是提供“CMS”字样,那么我将如何将 [0] => CMS_ADMIN, [1] =>CMS_ACADEMIC, [2] => CMS_FINANCE 分配给新数组。请帮忙....