有这样的用法哦
1 $allow_state_array_invoc = array(‘store_invoice‘,‘invoiceno‘,‘invoicerec‘,‘invoiceing‘); 2 if (in_array($_GET[‘state‘],$allow_state_array_invoc)) { 3 4 $condition[‘invoice_state‘] = str_replace($allow_state_array_invoc, 5 array(‘0‘,‘1‘,‘2‘,‘3‘), $_GET[‘state‘]); 6 7 } 8 else{ 9 $_GET[‘state‘] = ‘store_invoice‘; 10 $condition[‘invoice_state‘] = 0 ; 11 }
O(∩_∩)O哈哈哈~很懒
时间: 2024-10-28 12:32:31