This question already has an answer here:
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?
</div>
Use "." for string concat in php
$randfilescnt = rand(1,$filecount);
include('./quizes/Arrow/quiz'.$randfilescnt.'.php');
Like this way :
$randfilescnt = rand(1,$filecount);
include("./quizes/Arrow/quiz".$randfilescnt.".php");