variant_cat
PHP function
Edit on GitHub ✎
(PHP 5, PHP 7, PHP 8)
Concatenates two variant values together and returns the result
Description
variant_cat(mixed $left, mixed $right): variant
Concatenates left with right and returns the result.
This function is notionally equivalent to left . right.
Parameters
leftThe left operand.
rightThe right operand.
Variant-arith
Return Values
Returns the result of the concatenation.
Errors/Exceptions
Throws a com_exception on failure.
See Also
- language.operators.string for the string concatenation operator