What is indirection in PHP and how can it be used?

Indirection in PHP refers to the ability to access variables, functions, or objects indirectly through references or variables that store their names. This can be useful when you need to dynamically call functions or access variables based on user input or other runtime conditions. Example:

// Using indirection to dynamically call a function
$functionName = 'myFunction';
$result = $functionName();

function myFunction() {
    return 'Hello, world!';
}

echo $result; // Output: Hello, world!