array sizes are inconsistent code example
Example: array sizes are inconsistent
foreach($products as $key=>$value){
if(!isset($value->Title)){
$value->Title = "The product has no title";
}
else{
$value->Title = $value->Title;
}
}
foreach($products as $key=>$value){
if(!isset($value->Title)){
$value->Title = "The product has no title";
}
else{
$value->Title = $value->Title;
}
}