- 965 名前:デフォルトの名無しさん mailto:sage [2021/08/29(日) 15:03:06.13 ID:wuO9U1o+0.net]
- ビット演算子やら使うのがプロっぽいけどまあ簡単な方法としては
条件1 $matched_count+=1; 条件2 $matched_count+=10; 条件3 $matched_count+=100; switch ($matched_count) case 1: 処理B; break; case 10: 処理C; break; case 100: 処理D; break; case (substr_count((string)$matched_count, '1') > 1): 処理A; break;
|

|