Answer the question
In order to leave comments, you need to log in
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
$myClass = "my-custom-class";
echo '<a class="menu '.$myClass.'" style="color:#FF7F00" href="'.$base_path.'mess/vhod_user.php"><b>Новые сообщения'.$nyu.'</b></a><br>';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question