ap_trim_traling_space( string $contents )

Description #

Remove white space from string.

Parameters #

  • $contents
    string (Required) String.

Source #

File: includes/functions.php

function ap_trim_traling_space( $contents ) {
	$contents = preg_replace( '#(^( |\s)+|( |\s)+$)#', '', $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