Is it possible to include files with a variable inside of include
?
See this example:
$randfilescnt = rand(1,$filecount);
include('./quizes/Arrow/quiz'+ $randfilescnt +'.php');
How can I do this?
Is it possible to include files with a variable inside of include
?
See this example:
$randfilescnt = rand(1,$filecount);
include('./quizes/Arrow/quiz'+ $randfilescnt +'.php');
How can I do this?
Like this way :
$randfilescnt = rand(1,$filecount);
include("./quizes/Arrow/quiz".$randfilescnt.".php");
Use "." for string concat in php
$randfilescnt = rand(1,$filecount);
include('./quizes/Arrow/quiz'.$randfilescnt.'.php');