Is there a good way to unserialize individual array elements in PHP?

Is there a way to use PHP to unserialize individual array members?

Example - array of serialized objects

//$array Array (     [0] => O:21:"Calc\Calc":22:{s:3:"qok";...     [1] => O:21:"Calc\Calc":22:{s:3:"qok";...     [2] => O:21:"Calc\Calc":22:{s:3:"qok";... ) 

What I want is to transform it into an array of objects. For example, say I want to

  1. unserialize them like I want
  2. convert result into JSON

Is there was perhaps a way to do it like so:

$resultingJSON = '[' . implode(',', MAGIC_UNSERIALIZE_EACH($selections)). ']'; 

Replay

Category: php Time: 2016-07-28 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.145 (s). 12 q(s)