How can ternary operators be used to streamline conditional assignment of values in PHP?

Ternary operators in PHP can be used to streamline conditional assignment of values by providing a more concise and readable way to assign values based on a condition. Instead of writing out an if-else statement, ternary operators allow for a more compact syntax to achieve the same result. Example:

// Using ternary operator to assign a value based on a condition
$score = 85;
$result = ($score >= 60) ? 'Pass' : 'Fail';

echo $result; // Output: Pass