How to get language parameter from current site by php and add it to variable -


i need language parameter current page , meta tag php.

<meta http-equiv="content-language" content="de-de" /> 

after have language de-de or en-us, want add 1060 de-de , 1061 en-us value

if (function_exists('ditty_news_ticker')) {ditty_news_ticker(1060);}?></div> 

it´s not big deal me, js, have no idea php. thank help.

you can use get_meta_tags();

all need supply link , it'll output meta data array. e.g

get_meta_tags('http://www.google.com'); 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -