static function stringToTags( $tags ) {

		$tags = mb_split( ',', $tags );

		foreach ( $tags as $key => &$val ) {
			$val = strip_tags( $val );
			$val = mb_convert_case( $val, MB_CASE_TITLE, 'UTF-8' );
			$val = mb_split( '\W', $val ); // Split on negated \w
			$val = implode( ' ', $val ); // Put back together with spaces
			$val = trim( $val );
			if ( ! $val ) {
				unset( $tags[ $key ] );
			}
		}

		return $tags;
	}
static function stringToTags( $tags ) {

		$tags = mb_split( ',', $tags );

		foreach ( $tags as $key => &$val ) {
			$val = strip_tags( $val );
			$val = mb_convert_case( $val, MB_CASE_TITLE, 'UTF-8' );
			$val = mb_split( '\W', $val ); // Split on negated \w
			$val = implode( ' ', $val ); // Put back together with spaces
			$val = trim( $val );
			if ( ! $val ) {
				unset( $tags[ $key ] );
			}
		}

		return $tags;
	}
static function stringToTags ( $ tags ) { $ tags = mb_split ( ',' , $ tags ) ; foreach ( $ tags as $ key => & $ val ) { $ val = strip_tags ( $ val ) ; $ val = mb_convert_case ( $ val , MB_CASE_TITLE , 'UTF-8' ) ; $ val = mb_split ( '\W' , $ val ) ; // Split on negated \w $ val = implode ( ' ' , $ val ) ; // Put back together with spaces $ val = trim ( $ val ) ; if ( ! $ val ) { unset ( $ tags [ $ key ] ) ; } } return $ tags ; }
Return an array of tags from a comma delimited string

@param string $tags

@return array
Return an array of tags from a comma delimited string