I don't understand why this is hard to enforce, or requires special laws. We had rules about not using (feature) phones back when I was in middle school (~2002), and you just kept your phone in your backpack/pocket until the class was over. It worked.