Parantatatam
mag Cookies & Kekse
Dann muss es so aussehen:
PHP:
$var = 'BMW';
$pfad = './images/sig/';
$format = '.png';
$vars = array(
'Pfad' => $pfad,
'Eingabe' => $var,
'Format' => $format,
);
$letters = str_split($vars['Eingabe']);
foreach($letters as $i => $letter) {
$letters[$i] = $vars['Pfad'] . $letter . $vars['Format'];
}
echo '<pre>';
print_r($letters);
echo '</pre>';