Ref/stomp-Phpdoc专题
stomp_connect_error
Returns a string description of the last connect error
说明
string <span class="methodname">stomp_connect_error ( <span class="methodparam">void )
Returns a string description of the last connect error.
参数
此函数没有参数。
返回值
A string that describes the error, or null if no error occurred.
范例
示例 #1 stomp_connect_error example
<?php
$link = stomp_connect('http://localhost:61613');
if(!$link) {
die('Connection failed: ' . stomp_connect_error());
}
?>
以上例程的输出类似于:
Connection failed: Invalid Broker URI scheme
stomp_version
Gets the current stomp extension version
说明
string <span class="methodname">stomp_version ( <span class="methodparam">void )
Returns a string containing the version of the current stomp extension.
参数
此函数没有参数。
返回值
It returns the current stomp extension version
范例
示例 #1 stomp_version example
<?php
var_dump(stomp_version());
?>
以上例程的输出类似于:
string(5) "0.2.0"
目录
- stomp_connect_error — Returns a string description of the last connect error
- stomp_version — Gets the current stomp extension version