我有一行存储了如下数组:
a:10:{s:4:"full";s:79:"https://example.com...
我稍微编辑了它(只是 URL),现在我无法再将它作为数组检索。为什么?我能做些什么来扭转它?
我猜这与序列化有关,反之亦然。
最佳答案
WordPress stores the array data in a serialized way, so it
s:79
represent the length ofhttps://example.com...
.
如何使其正常工作:将 79
替换为您当前的 URL 长度。
例如:
s:18:"https://google.com"
希望这有帮助!
关于php - 在 phpmyadmin 中编辑数组行并破坏它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42906096/