WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/backslashit

Contents

Description

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

Usage

<?php backslashit$string ?>

Parameters

$string
(string) (required) Value to which backslashes will be added.
Default: None

Return Values

(string) 
String with backslashes inserted.

Examples

Notes

  • This: '\' is a backslash.

Change Log

Since: 0.71

Source File

backslashit() is located in wp-includes/formatting.php.

Related

See also index of Function Reference and index of Template Tags.