ap_replace_square_bracket( string $contents )

Description #

Replace square brackets in a string.

Parameters #

  • $contents
    string (Required) String.

Source #

File: includes/functions.php

function ap_replace_square_bracket( $contents ) {
	$contents = str_replace( '[', '[', $contents );
	$contents = str_replace( ']', ']', $contents );
	return $contents;
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment