I'm working on some HTML wireframes. 

There is some HTML code I'd like to be able to repeat 'X' number of times. 

e.g. 

```
<li>my list item</li>

```

So I put that code into a separate PHP file called "myListItem.php". And then in my main HTML template. I have some code that looks like this:

```
<ul>
<?php include('myListItem.php');?>
<?php include('myListItem.php');?>
<?php include('myListItem.php');?>
<?php include('myListItem.php');?>
</ul>

```

This feels redundant.

**Is there a simple way to repeat the inclusion of the same file 'X' number of times?**

Ideally, I'd be able to have something like the following in my HTML template: 

```
<ul>
<?php include('myListItem.php'); myItem(4);?>
</ul>

```

Just figuring out this stuff, so I apologize for what must be an obvious question to many. Keep in mind of course that the code I'm repeating in real-life is actually much longer than a simple list item, which in my example is humorously shorter that the php include itself.