Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////////////////////////////////
- function.php
- /////////////////////////////////////
- function test()
- {
- $var = 'test';
- render('file.php', [$var]);
- }
- ///////////////////////////////////////
- file.php
- //////////////////////////////////////
- <body>
- <div id="test">{$var}</div>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement