WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/backslashit

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.