<?php
function A() {
return "<?php echo \"some text\"; ?>";
}
echo A();
?>
I expected to see "some text" on the page, but i did not. So how do I make this code work? Thanks in advance.
UPD: I'm sorry for the not clear description. I'm going to insert a random number into the value of the input.
<?php
function print_form() {
return "<form method=\"POST\">
<input type=\"text\" name=\"code1\" value=\" <?php echo rand(0, 999999); ?> \" />
</form>";
}
echo print_form(); ?>