954,580 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

include ranged files in php

hi how can i include a range of numbered files like
file1.php,file2.php,file4.php
i have tried this code but it didn't work

<?php foreach (range(0, 7) as $fileno) {
	
    include "files/file" + $fileno + ".php";}?>
shandoosheri
Light Poster
42 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
 
<?php for($i=0;$i<8;$i++) include ("files/file".$i.".php"); ?>
cwarn23
Occupation: Genius
Team Colleague
3,033 posts since Sep 2007
Reputation Points: 413
Solved Threads: 259
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: