Z
Zelus et Radix
Guest
I understand how to use PHP include to include the whole content of a given file into a php file, but now I'd like to know if PHP can be used to include only part of that file, I mean, an specific HTML element/block of text among several different.
For example, I have four menus in four languages. I want to have all those menus in a single file then "mark" each of them as an element/block then refer to only one of those from the respective page, not the others. I want to use PHP for doing that because currently I'm learning it.
How can this be done? Thanks in advance.
For example, I have four menus in four languages. I want to have all those menus in a single file then "mark" each of them as an element/block then refer to only one of those from the respective page, not the others. I want to use PHP for doing that because currently I'm learning it.
How can this be done? Thanks in advance.