Hallo Kalle,
$html_1 = array([...]);
$html_2 = array([...]);
for( $x = 0; $x < count($html_1); $x++ ){
$erg['name'] = str_replace( $html_1[$x], $html_2[$x], $erg['name'] );
die Schleife ist überflüssig, str_replace() kann man als 1. und 2. Parameter auch je eine Array übergeben:
$html_1 = array(...);
$html_2 = array(...);
$var = str_replace($html_1,$html_2,$var);
funktioniert genauso. (siehe auch http://de.php.net/str_replace)
Grüße aus Nürnberg
Tobias
--
Selfcode: sh:( fo:) ch:? rl:( br:< n4:& ie:% mo:| va:) de:] zu:) fl:( ss:| ls:[ js:|
Selfcode: sh:( fo:) ch:? rl:( br:< n4:& ie:% mo:| va:) de:] zu:) fl:( ss:| ls:[ js:|