проблема с фунцией

KOLANICH

Новичок
PHP:
<?
ini_set('display_errors',1);
error_reporting(E_ALL ^E_NOTICE);
$width=150;
$height=50;

function func1($img){
	$treshold=0;
	//flag 0 2 - state flags
	//1 3 - to help to define 0 2
	$left;
	$right;
	$top=$height;
	$bottom=0;
	echo "func1 called";
	echo "width is $width , height is $height";
	for($i=0;$i<$width;$i++){
		$blackPixelPerColl=0;//white coll if  0
		///other actions
		
	}
	
}

..............................................
//do something
func1();

?>

func1 calledwidth is , height is


почему?
 
Сверху