a:2:{i:3;s:16:"GLS PARTICULIERS";i:1;s:16:"GLS PARTICULIERS";}
I have this type of data in multiples rows. What I want is just to take out the name in ” ” that’s it I don’t want the whole data. Does anyone know about this? I am using PHP.
Advertisement
Answer
Try something like this as said by @Majid and @ADyson
$txt = 'a:2:{i:3;s:16:"GLS PARTICULIERS";i:1;s:16:"GLS PARTICULIERS";}'; $php_array = unserialize($txt); var_dump($php_array);
php_array
will dump all the array and you can see how to fetch that data.