I have a file called "Header.inc.php" which has two classes. HomepageHeader & Menu. Both classes have HTML inside a method. The problem is that I want to insert the menu in the HomepageHeader class but due to HTML I can't nor I don't know how to access the contents of another class in PHP.
Below is my code:
<?php
class HomepageHeader
{
public $HomepageSlider = "HTML Code for Slider";
**At this point I want to insert the content of class**
//HTML Continues
}
class Menu
{
public $PageMenu = "HTML Code for Menu";
}
The main objective is to insert the Menu class content between the HTML of the first class and then continue the HTML after that to make it one part.