L
L
Lyuba2018-04-09 16:31:00
PHP
Lyuba, 2018-04-09 16:31:00

Set class to variable?

Tell me how to correctly set the class of the $nyu variable, the fact is that at the beginning there is already a class + do I need to set another class for this variable?
So that the number is in a circle

echo '<a class="menu" style="color:#FF7F00" href="'.$base_path.'mess/vhod_user.php"><b>Новые сообщения'.$nyu.'</b></a><br>';

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nicholas, 2018-04-09
Sumrak @NikolasSumrak

$myClass = "my-custom-class";
echo '<a class="menu '.$myClass.'" style="color:#FF7F00" href="'.$base_path.'mess/vhod_user.php"><b>Новые сообщения'.$nyu.'</b></a><br>';

L
leni_m, 2018-04-09
@leni_m

$nyu = '('.$cifra.')';
so what?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question