Online HTML To PHP Converter

Input data
bfotool loadding
Output data
bfotool loadding

HTML To PHP Converter helps you to convert HTML to PHP online.

HTML to PHP converter simplest

This free online tool lets you convert a HTML file into a PHP file.Just paste your HTML in the form below and it will instantly get converted to PHP No need to download or install any software. Free

Tool what is a HTML to PHP converter?

This HTML to PHP converter transforms HTML data and files into PHP data and files. This converter allows customizing input HTML and output PHP It also accepts HTML files with custom column delimiter characters and field quote characters. It supports comment lines and you can optionally ignore empty lines. You can also change how many spaces to use in the output PHP indentation.

How to Convert HTML to PHP?

Step 1: Select your input. Enter Data.
Step 2: Choose output options (optional) Output Options.
Step 3: Generate output.

HTML to PHP converter examples

HTML

<table>
    <tr>
        <td>pin</td>
        <td>time</td>
    </tr>
    <tr>
        <td>0001</td>
        <td>1524810082</td>
    </tr>
    <tr>
        <td>0002</td>
        <td>1524810082</td>
    </tr>
    <tr>
        <td>0003</td>
        <td>1524810082</td>
    </tr>
    <tr>
        <td>0004</td>
        <td>1524810082</td>
    </tr>
</table>

PHP

<?php
$string =  "<table>".
"    <tr>".
"        <td>pin</td>".
"        <td>time</td>".
"    </tr>".
"    <tr>".
"        <td>0001</td>".
"        <td>1524810082</td>".
"    </tr>".
"    <tr>".
"        <td>0002</td>".
"        <td>1524810082</td>".
"    </tr>".
"    <tr>".
"        <td>0003</td>".
"        <td>1524810082</td>".
"    </tr>".
"    <tr>".
"        <td>0004</td>".
"        <td>1524810082</td>".
"    </tr>".
"</table>";

 echo $string; 
?>