function test_efficiency($datas){ while($user = mysql_fetch_array($datas)){ $x++; $y = "user $x added (".$user['name'].")"; } return $x; }