[ create a new paste ] login | about

Link: http://codepad.org/kzFbsFfS    [ raw code | output | fork ]

PHP, pasted on Jun 14:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php

function rowFromVar($varname) {
    $result  = "<tr>";
    $result .= "<td>\$$varname</td>";
    $result .= "<td>" . $varname . "</td>";
    $result .= "</tr>";
    return $result;
}

print rowFromVar("sarfraz");


?>


Output:
1
<tr><td>$sarfraz</td><td>sarfraz</td></tr>


Create a new paste based on this one


Comments: