California Penal Code § 1542
Text of § 1542
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.
Cite this section
Cal. Penal Code § 1542
https://lawconsensus.com/codes/california/penal-code/1542/
LawCensus reproduces the text of the law for reference. It may not show the most recent changes. Check the official source before you rely on it: official text. This is general information, not legal advice.