PHP explode a string but keep the serialized part intact -


i trying take string, part of insert statement, explode ( separated commas ) , test reform string depending on index of value. have done realize exploding comma while potentially having serialized value whole string own value explode serialized value throws whole thing off. im trying avoid having go , check before creating string, involved might option. wondering if there way take initial string , separate commas without separating actual serialized value within string. example below.

 null,null,null,null,'hello world','a:3:{s:6:"johnny";a:3:{s:7:"physics";s:9:"great job";s:5:"maths";s:19:"you did a, job";s:9:"chemistry";s:27:"need work on this, johny";}s:5:"brady";a:3:{s:7:"physics";s:9:"great job";s:5:"maths";s:19:"you did a, job";s:9:"chemistry";s:27:"need work on this, brady";}s:5:"keith";a:3:{s:7:"physics";s:9:"great job";s:5:"maths";s:19:"you did a, job";s:9:"chemistry";s:27:"need work on this, keith";}}',null,23,14 


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -