stripslashes_from_strings_only( mixed $value ): mixed

In this article

Callback function for stripslashes_deep() which strips slashes from strings.

Parameters

$valuemixedrequired
The array or string to be stripped.

Return

mixed The stripped value.

Source

function stripslashes_from_strings_only( $value ) {
	return is_string( $value ) ? stripslashes( $value ) : $value;
}

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.