Skip to content

Faker Word Phrase

The faker::word_phrase function generates a random phrase.

Syntax

faker::word_phrase()

Parameters

  • None: This function does not require any parameters.

Returns

  • String: A random phrase.

Example

Try it out below!
faker::word_phrase()

This function is useful for generating text-based test data or simulating user input with meaningful phrases.