r()
Smart version of return with an if condition as first argument
Parameters
Name | Type | Default | Description |
---|---|---|---|
$condition * | mixed |
– | |
$value * | mixed |
– | The string to be returned if the condition is true |
$alternative | mixed |
null |
An alternative string which should be returned when the condition is false |
Return type
mixed