| 
 
update : 2015.11.03
 
php.shukuma.com검색:
  
 | 
Stomp::readFramestomp_read_frame(PECL stomp >= 0.1.0) Stomp::readFrame -- stomp_read_frame — Reads the next frame 설명객체 기반 형식 (method): 절차식 형식: 
   array stomp_read_frame
    ( resource  
  $link
   )Reads the next frame. It is possible to instantiate an object of a specific class, and pass parameters to that class's constructor. 인수
 
 반환값
 변경점
 
 예제
 Example #1 객체 기반 형식 
<?php위 예제의 출력 예시: 
object(StompFrame)#2 (3) {
  ["command"]=>
  string(7) "MESSAGE"
  ["headers"]=>
  array(5) {
    ["message-id"]=>
    string(41) "ID:php.net-55293-1257226743606-4:2:-1:1:1"
    ["destination"]=>
    string(10) "/queue/foo"
    ["timestamp"]=>
    string(13) "1257226805828"
    ["expires"]=>
    string(1) "0"
    ["priority"]=>
    string(1) "0"
  }
  ["body"]=>
  string(3) "bar"
}
 Example #2 절차식 형식 
<?php위 예제의 출력 예시: 
array(3) {
  ["command"]=>
  string(7) "MESSAGE"
  ["body"]=>
  string(3) "bar"
  ["headers"]=>
  array(6) {
    ["transaction"]=>
    string(2) "t1"
    ["message-id"]=>
    string(41) "ID:php.net-55293-1257226743606-4:3:-1:1:1"
    ["destination"]=>
    string(10) "/queue/foo"
    ["timestamp"]=>
    string(13) "1257227037059"
    ["expires"]=>
    string(1) "0"
    ["priority"]=>
    string(1) "0"
  }
}
 |