I stored some data to an array using this code
$this->data['result'] = $this->mymodel->search($keyword);
when I print my result by using print_r($this->data);
it shows like this
Array ( [base_url] => http://localhost/pelikanartline.com/ [result] => Array ( [0] => stdClass Object ( [product_id] => 2 [product_code] => 167007 [product_name] => ARTLINE VIVIX HIGHLIGHTERS 10PK YELLOW [product_discription] => some description [xylene_free] => y [rohs_compliant] => y [product_features] => some text ) ) )
now I want to store product_id value to a variable like pro_id. please help me to do this.