©
이 문서에서는 PHP 중국어 웹사이트 매뉴얼 풀어 주다
(PECL tokyo_tyrant >= 0.1.0)
TokyoTyrant::putShl — Concatenates to a record
$key
, string $value
, int $width
)Concatenate to a record and shift to left.
key
A string key
value
The value to concatenate
width
The width of the record
This method returns a reference to the current object and throws TokyoTyrantException on failure.
Example #1 TokyoTyrant::putShl() example
<?php
$tt = new TokyoTyrant ( "localhost" );
$tt -> put ( "key" , "just a long piece of data" );
$tt -> putShl ( "key" , " and string" , 15 );
echo $tt -> get ( "key" );
?>
以上例程会输出:
data and string