I am trying to set string in foreach loop using =>. Problem is, if I use => operator then string create correctly and generate error... please help me... my sample code is
$field = array();
$cond = array();
foreach ($fields as $val) {
$field[] = $model.'.'.$val;
$cond[] = $model.'.'.$val.' '.'LIKE '.=>."%".$value."%";
}
I have generate string like
'or'=>array('ErpProduct.ProductCode LIKE'=>"%".$value."%",'ErpProduct.ProductName LIKE'=>"%".$value."%"),
=>there in the first place?