我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

模式从字符串PHP删除

I have a string In the pattern

a:22:{s:10:"identifier";s:17:"12345678912345678";s:10:"URL";s:0:"";s:10:"profile";s:62:"https://www.xyz.com//";}

I want to remove the string count like s:10 or s:17 from this string so i can decode it in JSON

This is not JSON and shouldn't hence be decoded as JSON. This is a serialized string using PHPs serialize() function. To "decode" this string use the unserialize() function of PHP.

近期文章

  • joomla 2.5中的缓存管理不当
  • 使用ajax和php上传文件
  • 在prestashop mailalert的第三方模块
  • PHP脚本中未定义Jquery ajax参数
  • 偏移打印关联对象数组中的数组键
  • 如何连接数据库(未知主机,没有ip)
  • 如何在包含标题后动态更改TITLE [重复]
  • Twig文件路径问题和扩展模板
  • 在php中一组三个分组大数字
  • 什么是正则表达式的解决方案? PHP
  • 如何在php中向表中插入数据?
  • 找到字符串中的最后一个超链接[关闭]
  • CakePHP扩展模型
  • 如何保护管理员文件夹php
  • preg_match_all有特殊字符
  • PDO登录系统无法正常工作
  • 包含在php中的相对路径
  • 解析错误:意外的T_OBJECT_OPERATOR
  • 当我尝试从android发布我的JSON时,Zend $ _POST ['param_name']说“Undefined index”
  • 为什么这个SQL语句不会使用字符串(mm / dd / yy)并将其转换为天?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华