我有一個多維數組如下PHP檢查,如果數組爲空
Array
(
[0] => Array
(
[featured] => Yes
[job_code] => WT3
[title] => Senior Test Engineer - dB Testing
[no_of_pos] => 5
[experience] => 3 to 5 years
[job_desc] => Work with Dev counterparts to understand the implementation details.
Adhere to all quality standards from QA perspective.
Able to independently come up with test cases based on the analysis of functionality.
Test planning and Test Design (Creation of Test scenarios/Test Cases)
Preparation of Test environment
Execution of Test cases
Identification, reporting and tracking of defects
[skillsets] => Should be experienced in testing on Mac OS X
Should be familiar with terms such as plist, starutp options on Mac, OS versions
Should be familiar with Terminal and Console on Mac OS X
Should be familiar with Apple Script Editor or Automator
Should be able to troubleshoot basic boot issues on Mac
[keywords] => Black Box testing, Web Testing, e-Commerce, SQL queries/database testing
)
[1] => Array
(
[featured] => No
[job_code] => MNX-7A
[title] => Test Engineer - Mac OS X
[no_of_pos] => 1
[experience] => 3 to 5 years
[job_desc] => Should be excellent in Black Box Test Case Design
Should be able to understand business requirements and develop relevant scenarios and test cases
Good knowledge on the SDLC/STLC
Preparation of Test environment
Execution of Test cases
Identification, reporting and tracking of defects
[skillsets] => Should be experienced in testing on Mac OS X
Should be familiar with terms such as plist, starutp options on Mac, OS versions
Should be familiar with Terminal and Console on Mac OS X
Should be familiar with Apple Script Editor or Automator
Should be able to troubleshoot basic boot issues on Mac
[keywords] => Black Box Testing, Mac OS X
)
)
我想要遍歷數組通,並確保所有的字段有一個值,而不是空。
這是最好的辦法嗎?
!空($ ARR)方法 – 2013-05-07 05:33:03
這是否檢查所有鍵和值? – 2013-05-07 05:38:52