js foreach object with php value code example
Example: php object foreach
//$arr should be array as you mentioned as below
foreach($arr as $key=>$value){
echo $value->sm_id;
}
//$arr should be array as you mentioned as below
foreach($arr as $key=>$value){
echo $value->sm_id;
}