Mahlzeit johny7,
So?
Wieso nutzt Du nicht die zuerst von ChrisB vorgeschlagene Lösung mittels sprintf()?
$html = sprintf('<table><tr><th>ID</th><th>Name</th><th>Vorname</th><th>Adresse</th>%s</tr></table>', ((true) ? '<th>Aktion</th>' : ''));
MfG,
EKKi
--
sh:( fo:| ch:? rl:( br:> n4:~ ie:% mo:} va:) de:] zu:) fl:{ ss:) ls:& js:|
sh:( fo:| ch:? rl:( br:> n4:~ ie:% mo:} va:) de:] zu:) fl:{ ss:) ls:& js:|