我得到以下信息:
$post = (array) json_decode($post);
$pushUser->dagen = (array) $post['days'];
帖子的“天”部分是:
[dagen] => Array
(
[0] => Monday
[1] => Wednesday
)
我想要做的就是在 $pushUser-dagen 中存储带有天数的数组 :)... 很简单吧?
但后来我得到这些错误:
在 E:\Documenten\Dropbox\Dropbox\dummy-htdocs\VID_service\vid_push\libs\rb.php:3465 堆栈跟踪:#0 E:\Documenten\Dropbox\ Dropbox\dummy-htdocs\VID_service\vid_push\libs\rb.php(3496): RedBean_OODB->check(Object(RedBean_OODBBean)) #1 E:\Documenten\Dropbox\Dropbox\dummy-htdocs\VID_service\vid_push\libs\ rb.php(7376): RedBean_OODB->store(Object(RedBean_OODBBean)) #2 E:\Documenten\Dropbox\Dropbox\dummy-htdocs\VID_service\vid_push\api\registerpush.php(32): R::store(对象(RedBean_OODBBean))#3 {main}
不能将数组存储在 RedBean 对象中吗?