Jump to content
Larry Ullman's Book Forums

laith jasser

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About laith jasser

  • Rank
    Newbie
  1. $array2=array('name'=>array('laith','raad','hamid'),'age'=>array(20,30,40),'gender'=>'male'); print_r($array2); echo $c2=count($array2); foreach($array2 as $k=>$v) { if($array2 < $c2) { foreach($array2 as $k=>$v) { echo $k . ' ' . $v . "<br/>"; } } echo $k . ' ' . $v . "<br/>"; } // i have a problem //NOTICE: array to string conversion on the last line // i need solution ?????????????????????????????????
  2. thanks... i tried to do that without print_r, but I falied and where the btw forum .. please send me the link ...
  3. PHP for the Web, Fourth Edition page 186 script 7.4 continue i find mistakes for foreach ($books as $key => $value) { print "<p>$key: $value</p>\n"; } it need print_r solution foreach ($book as $key => $value) { print $key; print_r($value); }
×
×
  • Create New...