When i'm using the above mentioned (include, include_once, require, require_once) methods i'm getting the 1 written at the end of every content where i've used it.
Have a look:
PHP Code:
<!--Footer Section Starts Here-->
<?= require_once("elements/footer.php"); ?>
<!--Footer Section Ends Here-->
<!--Bottom CSS and JS Starts Here-->
<?= include_once("elements/bottom_css_and_js.php"); ?>
<!--Bottom CSS and JS Ends Here-->
Html Output
<div>
<div>
<p class="copyright">Copyright ©<script>document.write(new Date().getFullYear());</script> All rights reserved.</p>
</div>
<div>
<p class="copyright">This template is made with <i class="ion-ios-heart text-red" aria-hidden="true"></i> by <a href="http://localhost:8080/codeigniter4">Localhost</a></p>
</div>
</div>1
<!--Bottom CSS and JS Starts Here-->
<script src="http://localhost:8080/codeigniter4/public/assets/js/jquery.min.js"></script>
<script src="http://localhost:8080/codeigniter4/public/assets/js/popper.js"></script>
<script src="http://localhost:8080/codeigniter4/public/assets/bootstrap-footer-19/js/bootstrap.min.js"></script>
<script src="http://localhost:8080/codeigniter4/public/assets/js/main.js"></script>
</body>
</html>1
<!--Bottom CSS and JS Ends Here-->