HiHo,
Gerade bin ich dabei ein Script von PHP4 auf PHP5 anzupassen und bin nun auf folgendes gestoßen
	
		
			
		
		
	
	
Unzar dies ${button_.$i}
gibt mir aus
Änder ich dies in $button_.$i sagt er mir PHP Notice Undefined variable: button_
Was ist das für ein Code den sowas ist mir noch nie unter gekommen
									
									
								Gerade bin ich dabei ein Script von PHP4 auf PHP5 anzupassen und bin nun auf folgendes gestoßen
Quellcode
- for ($i=0; $i<13; $i++) {
 - $j=$i+100;
 - $k=$i+200;
 - ${button_.$i} = "<input type='button' id='button".$i."' onclick='SetPoints(".$i.")' value='»' />";
 - ${button_.$j} = "<input type='button' id='button".$j."' onclick='SetPoints(".$j.")' value='»' />";
 - ${button_.$k} = "<input type='button' id='button".$k."' onclick='SetPoints(".$k.")' value='»' />";
 - }
 
Unzar dies ${button_.$i}
gibt mir aus
PHP Notice Use of undefined constant button_ - assumed 'button_'
Änder ich dies in $button_.$i sagt er mir PHP Notice Undefined variable: button_
Was ist das für ein Code den sowas ist mir noch nie unter gekommen