private static function _arrayFindName(array $tokenAnswers, $fieldNames)
    {
        $results = array();

        foreach ($tokenAnswers as $fieldName => $value) {
            if (strpos($fieldName, $fieldNames) !== false) {
                $results[] = $fieldName;
            }
        }

        // \MUtil_Echo::track($results);

        return $results;
    }
private static function _arrayFindName(array $tokenAnswers, $fieldNames)
    {
        $results = array();

        foreach ($tokenAnswers as $fieldName => $value) {
            if (strpos($fieldName, $fieldNames) !== false) {
                $results[] = $fieldName;
            }
        }

        // \MUtil_Echo::track($results);

        return $results;
    }
private static function _arrayFindName ( array $ tokenAnswers , $ fieldNames ) { $ results = array ( ) ; foreach ( $ tokenAnswers as $ fieldName => $ value ) { if ( strpos ( $ fieldName , $ fieldNames ) !== false ) { $ results [ ] = $ fieldName ; } } // \MUtil_Echo::track($results); return $ results ; }
Finds those tokenAnswers array keys that contain "fieldNames" in their key.

@param array $tokenAnswers
@param string $fieldNames
@return array
Finds those tokenAnswers array keys that contain fieldNames in their key .