## This My test.php file ##
//here I am getting the variable value
<?PHP
$name = $_POST('variable');
echo $name;
?>
## This my script ##
//avariable value passing to test .php file
<script type ="text/javascript">
var name = "jani";
$.ajax({
type: 'POST',
url: 'test/test.php',
data: {'variable': name},
});
</script>
###** I am getting this error **###
Fatal error: Function name must be a string in
D:\xampp\htdocs\test\test.php on line 2