老师您好,运行之后报错,提示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回答

singwa

2019-11-29

您好。 哪个版本的?

0
1
奋斗de小蜗牛
眼花,方法名column拼成columm了,好尴尬......
2019-11-29
共1条回复

奋斗de小蜗牛

提问者

2019-11-29

找到错误了,方法名拼错了,尴尬

0
1
singwa
好的。解决了就好。赞。 祝学习愉快,有问题欢迎随时 沟通。
2019-11-29
共1条回复

Swoole入门到实战打造高性能赛事直播平台

swoole创始人推荐,借助Swoole打造高性能直播平台

2228 学习 · 1062 问题

查看课程