# equals

Learn how to compare two UUIDs.

This method checks whether this UUID is equal to the given one.

The comparison is based on the canonical value, so two UUIDs that differ only in letter case are considered equal.

## Signature

This method has the following signature:

```php
public function equals(self $uuid): bool
```

This method returns `true` when both UUIDs hold the same value, or `false` otherwise.

## Example

Here is a basic example of how to use this method:

```php
<?php
use Croct\Plug\Uuid;

$uuid = Uuid::parse('f47ac10b-58cc-4372-a567-0e02b2c3d479');
$same = $uuid->equals(Uuid::parse('F47AC10B-58CC-4372-A567-0E02B2C3D479'));
```

## Parameters

The following list describes the supported parameters:

- `uuid`: [`Uuid`](/reference/sdk/php/api/storage/uuid)

  The UUID to compare against this one.
