编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 预定义常量
  • TokyoTyrant »
  • PHP Manual
  • tokyo_tyrant
  • 范例

范例

Basic usage

Example #1 Putting and getting a key-value pair

<?php
$tt 
= new TokyoTyrant("localhost");
$tt->put("key", "value");
echo 
$tt->get("key");
?>

以上例程会输出:

value
相关文章
php 关于本手册 如何阅读函数的定义(函数原型)php 针对各数据库系统对应的扩展 tokyo tyrantphp tokyo tyrant the tokyotyrant classphp tokyo tyrant the tokyotyrantexception classphp tokyo tyrant the tokyotyrantiterator classphp tokyo tyrant the tokyotyrantquery classphp tokyo tyrant the tokyotyranttable classphp gd 和图像处理 函数 返回经过仿射变换后的图像,剪切区域可选php gd 和图像处理 函数 取得指定颜色的索引值php gd 和图像处理 函数 由文件或 url 创建一个新图象。php imagick descriptionphp imagick scales an image proportionally to half its sizephp imagick changes the color value of any pixel that matches targetphp tokyo tyrant 简介php sdo das xml 函数 sets the given string as xml versionphp sdo 函数 create an sdo dataobjectphp sdo 函数 get a string describing the sdo dataobjectphp tokyo tyrant 预定义常量php tokyo tyrant 范例php tokyo tyrant 安装/配置
关注编程学问公众号
编程学问网 湘ICP备20001732号