How to get the key and print it inside an HTML tag?
<p>I am new in PHP and I my problem is I want to pass the keys/value in my table. Is there any other way to tdo this? Thank you!</p>

<p>Here are my codes: </p>

<pre><code>&lt;?php
$array = array(
"Salary of Mr. A is " =&gt; "1000$",
"Salary of Mr. B is " =&gt; "1200$",
"Salary of Mr. C is " =&gt; "1400$");              
?&gt;
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
     &lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;table border="1"&gt;
    &lt;tr&gt;
        &lt;td&gt;&lt;?= $array[0]; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?= $array["Salary of Mr. A is "]; ?&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?= $array["Salary of Mr. B is "]; ?&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?= $array["Salary of Mr. C is "]; ?&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
&lt;/body&gt;
 &lt;/html&gt;
</code></pre>