private function jsonArray($object)
{
$json = array();
if(isset($object) && !empty($object))
{
foreach($object as $obj)
{
$json[]["name"] = $obj;
}
}
return $json;
}
We are grabbing an object, and if the conditional is met, we iterate over that object. Then... I'm lost on this reading... :s
[] Buradan anlamı nedir?
$json[]["name"] = $obj;
Thanks in advance, MEM