> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# Cal. Penal Code - PEN § 1542. — Section 1542.

- **Citation**: Cal. Penal Code - PEN § 1542.
- **Node Type**: section
- **Jurisdiction**: California (state)
- **Code Body**: Penal Code - PEN (PEN)
- **Official Source**: [https://downloads.leginfo.legislature.ca.gov/pubinfo_2025.zip](https://downloads.leginfo.legislature.ca.gov/pubinfo_2025.zip)
- **Canonical URL**: [https://corpuslaw.us/codes/california/penal-code/part-2/title-12/chapter-3/section-1542](https://corpuslaw.us/codes/california/penal-code/part-2/title-12/chapter-3/section-1542)
- **Semantic URL**: [https://corpuslaw.us/codes/california/penal-code/part-2/title-12/chapter-3/section-1542](https://corpuslaw.us/codes/california/penal-code/part-2/title-12/chapter-3/section-1542)

## Hierarchy

Title PEN — Penal Code - PEN > Part 2. — PART 2. OF CRIMINAL PROCEDURE [681. - 1620.] > Title 12. — TITLE 12. OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE [1473. - 1564.] > Chapter 3. — CHAPTER 3. Of Search Warrants [1523. - 1542.5.]

## Text

When a person charged with a felony is supposed by the magistrate before whom he is brought to have on his person a dangerous weapon, or anything which may be used as evidence of the commission of the offense, the magistrate may direct him to be searched in his presence, and the weapon or other thing to be retained, subject to his order, or to the order of the Court in which the defendant may be tried.
