At a place in my PHP application, I need to echo PHP’s Global variable’s Syntactically, i.e. something of the sort
echo "$_POST['submit']";
But this ain’t working. Can anyone please shed some light on it?
The actual piece of code is:
echo "<?php if(isset($_POST['submit'])) echo 'value="'. $_POST['{$column['Field']}'] .'"'; ?>";
Try using nowdoc
This is available from PHP 5.3 and it doesn’t interpolate into string the variable value
to echo it simply do a:
or a