php8.5
Home/ Manual/ com / functions/ variant_cat

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

left

The left operand.

right

The right operand.

Variant-arith

Return Values

Returns the result of the concatenation.

Errors/Exceptions

Throws a com_exception on failure.

See Also

Source: reference/com/functions/variant-cat.xml · from the official PHP manual (php/doc-en)