I have a simple PHP file with the following:
<?php
echo 'catid=$_GET["catid"]';
<?>
When I run the page, the output is:
catid=$_GET["catid"]
I’m accessing the page as http://www.abc.com/temp.php?catid=3. I’d like $_GET to execute so I see:
catid=3
What am I doing wrong?
$_Getis a variable, and to echo a variable you do not need parenthesis around it.please see this : source