stomp_connect_error

Returns a string description of the last connect error

&reftitle.description; `string` `stomp_connect_error`

Returns a string description of the last connect error.

&reftitle.parameters; &no.function.parameters;
&reftitle.returnvalues;

A string that describes the error, or &null; if no error occurred.

&reftitle.examples;

### `stomp_connect_error` example

    <?php
    $link = stomp_connect('http://localhost:61613');

    if(!$link) {
        die('Connection failed: ' . stomp_connect_error());
    }
    ?>

&example.outputs.similar;

    Connection failed: Invalid Broker URI scheme