How to process the data which type is BLOB? I get the following data from MySQL by db_query(). The type of the column is BLOB.


  a:2:{s:10:"attributes";a:1:{s:5:"title";s:0:"";}s:8:"langcode";s:7:"zh-hans";}


How should I process it?
Pass it to unserialize(). That is the string obtained from serialize(), when the argument is the following array.

$array = array(
  'attributes' =&gt; array('title' =&gt; ''),
  'langcode' =&gt; 'zh-hans',
);


serialize() is the function used from Drupal when the data to save in the database is an array.