Get file extension

function file_get_ext(filename)
{
return typeof filename != "undefined" ? filename.substring(filename.lastIndexOf(".")+1, filename.length).toLowerCase() : false;
}

Comments

Popular posts from this blog

Set limit wp_nav_menu

Conut document have children that are show in navigation