php - File content variable value -
first.php:
<?php $name ="somthing"; ?> second.php
$data = file_get_contents(first.php); now want $name variable value $data variable. how it?
change second.php to:
include 'first.php'; echo $name; output "somthing"
Comments
Post a Comment