How to use php | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to use php

I wanna ask how to use php in html and why it doesn't show when i use the <?php?> Tag

10th Oct 2022, 8:33 PM
Omosanya Damilola
3 Answers
+ 1
Do you have an example code that you've tried? From what I've searched here in the forum, Sololearn uses php7, so you should be able to use it in the Web code playground.
10th Oct 2022, 8:56 PM
Ausgrindtube
Ausgrindtube - avatar
+ 1
Omosanya Damilola You can use html with php but your file should have php extension. You can also write html in php using echo https://code.sololearn.com/w0F7OWCmgFl0/?ref=app
11th Oct 2022, 5:19 AM
A͢J
A͢J - avatar
0
Ausgrindtube will i save the file as .php And what if i want to use it in html file
10th Oct 2022, 8:58 PM
Omosanya Damilola