/**
  * Return the file extension (without .) from path
  *
  * @param STRING 		$ypath		path or file
  * @return STRING 				[FILE EXTENSION]
  */
 public static function get_file_extension_from_path($y_path)
 {
     //--
     $y_path = Smart::safe_pathname($y_path);
     //--
     if ((string) $y_path == '') {
         return '';
     }
     //end if
     //--
     $arr = (array) Smart::path_info((string) $y_path);
     //--
     return (string) trim(strtolower(Smart::safe_filename((string) $arr['extension'])));
     //--
 }