My data was save in database in serialize format. I want to unserialize data that i get from select query then compute length of this and return index of some value in data. result of unserialize data is like
Array ( [0] => [1] => 3445 [2] => [3] => 3446 [4] => [5] => 3452 [6] => [7] => 3530 [8] => 3555 )
how can I compute array length and return index of special value? in my code length of value false number
$str = $row->cur;
$str_len=unserialize($str);
print_r($str_len);
$str_length=count($str_len);