1 回答

TA貢獻(xiàn)1820條經(jīng)驗(yàn) 獲得超10個(gè)贊
此示例在函數(shù)返回值不是 或 的數(shù)組時(shí)回顯。There are values not complete or failed. Repeat.Getstatusall()completefailed
while( array_diff( Getstatusall(), ['complete', 'failed'] ) ) {
echo "There are values not complete or failed. Repeat.";
// you can even do something else or nothing
}
如果要獲取 ,這可能會(huì)有所幫助:final result
while( array_diff( $status = Getstatusall(), ['complete', 'failed'] ) ) {
echo "There are values not complete or failed. Repeat."
// you can even do something else or nothing
}
var_dump( $status );
- 1 回答
- 0 關(guān)注
- 135 瀏覽
添加回答
舉報(bào)