> For the complete documentation index, see [llms.txt](https://circular-protocol.gitbook.io/standard-apis/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://circular-protocol.gitbook.io/standard-apis/api-docs/php/hextostring.md).

# hexToString()

**Method signature**

```php
private function hexToString($hex)
```

**Parameters**

| Name  | Type   | Description                                      |
| ----- | ------ | ------------------------------------------------ |
| `hex` | string | Any hex string to convert to a plain text string |

**Example**

```php
<?php
require 'vendor/autoload.php';
use CircularProtocol\Api\CircularProtocolAPI;

$circular = new CircularProtocolAPI();
$text = "48656c6c6f2c20576f726c6421";

$result = $circular->hexToString($text);
echo $result;
```

**Result**

The result will be an object of type String:

```
Hello, World!
```
