+ 2

Can you help me please? I tried to use php in HTML but it didn't work

https://code.sololearn.com/Wef5a5uJm6m2/?ref=app In this code above I tried to use PHP to produce 10 div tags in HTML.But it didn't work.The code inside the php tags is outputted. Is this possible or is there another way to output 10 div tags without writing all 10?

17th Jun 2018, 2:40 PM
hans
hans - avatar
3 Answers
+ 13
You can't use PHP in the Web sandbox of SoloLearn. Use the 'PHP' option while creating the code...
17th Jun 2018, 2:41 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 12
You could just create your whole page from a PHP project or use JS instead.
17th Jun 2018, 3:27 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 2
Ok thank you. Then i will have to write 10 div blocks .....
17th Jun 2018, 2:46 PM
hans
hans - avatar