老师您好,运行之后报错,提示column这个方法未定义
来源:6-4 Swoole内存-table详解(上)
奋斗de小蜗牛
2019-11-29
<?php
//创建内存表
$table = new swoole_table(1024);
//内存表增加一列
$table->columm('id',swoole_table::TYPE_INT,4);
$table->column('name',swoole_table::TYPE_STRING,64);
$table->column('age',swoole_table::TYPE_INT,3);
$table->create();
$table->set('singwa_imooc',['id'=>1,'name'=>'singwa','age'=>18]);
print_r($table->get('singwa_imooc'));
写回答
2回答
-
您好。 哪个版本的?
012019-11-29 -
奋斗de小蜗牛
提问者
2019-11-29
找到错误了,方法名拼错了,尴尬
012019-11-29
相似问题