I was using the below javasciprt code, can the innerHTML be used in PHP? Is it possible to change this code into php?
Code:
function get_title() {
var t = document.getElementsByTagName('title')[0];
if ( !!t.childNodes.length ) {
document.write(t.firstChild.data);
} else if ( t.innerHTML ) {
document.write(t.innerHTML);
}
}
Comment