Un motore di ricerca WordPress per sviluppatori e autori di temi



backslashit ›

Da0.71
Deprecaton/a
backslashit ( $string )
Parametri:
  • (string) $string Value to which backslashes will be added.
    Richiesto:
Ritorna:
  • (string) String with backslashes inserted.
Definito a:
Codex:

Adds backslashes before letters and before a number at the start of a string.



Sorgenti

function backslashit( $string ) {
	if ( isset( $string[0] ) && $string[0] >= '0' && $string[0] <= '9' ) {
		$string = '\\\\' . $string;
	}
	return addcslashes( $string, 'A..Za..z' );
}