File-1:
<?php
<div>
<p>
something...
</p>
</div>
?>
File-2:
<?php
$file1= What should I write to get output of File1?
?>
I need to get html output to the $file1 variable;
Please help.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think this will work for you:
Use it like this:
To pass variables you can modify function above like this:
You can access variables in included file like this: print $var1;