//Текст 1
if($text_1 != "") {
$text_1 = '
<span class="">Текст 1</span>
';
}
//Текст 2
if($text_2 != "") {
$text_2 = '
<span class="">Текст 2</span>
';
}
//Текст 3
if($text_3 != "") {
$text_3 = '
<span class="">Текст 3</span>
';
}
//Текст 4
if($text_4 != "") {
$text_4 = '
<span class="">Текст 4</span>
';
}
//Текст 5
if($text_5 != "") {
$text_5 = '
<span class="">Текст 5</span>
';
}
$sticker_background = "
$text_1
$text_2
$text_3
$text_4
$text_5
";