Look, I have, for example, a variable, but I need to put the result of a variable into a class, how to do it?
$count = "image"; printf( <div class='тут не знаю как писать'>Привет</div> );
Help, I apologize for such a binary question)))
Look, I have, for example, a variable, but I need to put the result of a variable into a class, how to do it?
$count = "image"; printf( <div class='тут не знаю как писать'>Привет</div> );
Help, I apologize for such a binary question)))
And it is possible to state the code in more detail. If you make up a CMS and get a "class" there, then I can help, and if you write the solution itself, it is much simpler. <div class = "<? php echo '$ count';?>"> Hell </ div>
Well, how was it?
$count = "image"; printf( "<div class='%s'>Привет</div>",$count );
Source: https://ru.stackoverflow.com/questions/68578/
All Articles