PHP-Code:
$search = '{image}';
$pos = 0;
foreach( $sim as $img ) {
$pos = strpos( $code, $search, $pos );
if( $pos===false ) {
break;
}
$code = substr_replace ( $code, $img, $pos, $pos+7 );
$pos += strlen( $img );
}
Einen Kommentar schreiben: