downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

TokyoTyrant::restore> <TokyoTyrant::putNr
[edit] Last updated: Fri, 24 Jun 2011

view this page in

TokyoTyrant::putShl

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::putShlالحاق به رکورد

Description

public mixed TokyoTyrant::putShl ( string $key , string $value , int $width )

الحاق رکورد و شیفت به چپ.

Parameters

key

کلید رشته

value

مقدار الحاق

width

عرض رکورد

Return Values

بازگرداندن شی فعلی در صورت موفقیت و ایجاد TokyoTyrantException در صورت شکست.

Examples

Example #1 مثال TokyoTyrant::putShl()

<?php
/* Connect to a database on default port */
$tt = new TokyoTyrant("localhost");

/* Create a new key */
$tt->put("key""just a long piece of data");

/* Concatenate and shift to left */
$tt->putShl("key"" and string"15);

/* Echo the key */
echo $tt->get("key");
?>

The above example will output:

data and string

See Also



add a note add a note User Contributed Notes TokyoTyrant::putShl - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites