Across the country, 35 states have laws or rules limiting cellphones and other electronic devices in school, including 18 states and the District of Columbia where phones aren’t allowed during school.