public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/quiz/multi.php
/**
		 * Clean the answer data and return it to the user. Check for an answer that looks like ans_%d.
		 *
		 * @param String $rawData The data that's being cleaned.
		 *
		 * @return String The cleaned data (just the index of the answer).
		 */
Clean the answer data and return it to the user. Check for an answer that looks like ans_%d.
@param String $rawData The data that's being cleaned.

@return String The cleaned data (just the index of the answer).
Clean the answer data and return it to the user . Check for an answer that looks like ans_%d . @param String $rawData The data that ' s being cleaned . @return String The cleaned data ( just the index of the answer ) .
public static function sanitizeAnswerData( $rawData ) {
			if ( preg_match( '/^ans_(\d+)$/', $rawData, $matches_a ) ) {
				return $matches_a[1];
			}
			return false;
		}
public static function sanitizeAnswerData ( $ rawData ) { if ( preg_match ( '/^ans_(\d+)$/' , $ rawData , $ matches_a ) ) { return $ matches_a [ 1 ] ; } return false ; }
Clean the answer data and return it to the user.
Clean the answer data and return it to the user .