original_string: protected function _filterAnswersOnly($sourceSurveyId, array $answers)
      {
          $s = $sourceSurveyId . 'X';
          $l = strlen($s);
  
          $results = array();
          foreach ($answers as $key => $value) {
              if (substr($key, 0, $l) == $s) {
                  $results[$key] = $value;
              }
          }
  
          return $results;
      }
code: protected function _filterAnswersOnly($sourceSurveyId, array $answers)
      {
          $s = $sourceSurveyId . 'X';
          $l = strlen($s);
  
          $results = array();
          foreach ($answers as $key => $value) {
              if (substr($key, 0, $l) == $s) {
                  $results[$key] = $value;
              }
          }
  
          return $results;
      }
code_tokens: protected function _filterAnswersOnly ( $ sourceSurveyId , array $ answers ) { $ s = $ sourceSurveyId . 'X' ; $ l = strlen ( $ s ) ; $ results = array ( ) ; foreach ( $ answers as $ key => $ value ) { if ( substr ( $ key , 0 , $ l ) == $ s ) { $ results [ $ key ] = $ value ; } } return $ results ; }
docstring: Filters an answers array, return only those fields that where answered by the user.
  
  @param int $sourceSurveyId Survey ID
  @param array $answers
  @return array
docstring_tokens: Filters an answers array return only those fields that where answered by the user .