Infinitive phrases in English can function as nouns, adjectives, or adverbs in a sentence.
Infinitive phrases in sentences function as nouns, adjectives, or adverbs. In the sentence 'I just had to do it,' the infinitive phrase to do acts as the direct object of the verb 'had.'
https://brainly.com/question/11382643