标签:
有这样的用法哦
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哈哈哈~很懒
标签:
原文地址:http://www.cnblogs.com/lemonphp/p/4911728.html