javascript foreach object with php 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;
}