$filename = ''2018/4/18;
function mk($filename){
return is_dir($filename) OR mk(dirname($filename)) AND mkdir($filename);}
is_dir() Determines whether the directory exists and stops executing to the right. Otherwise continue to the right.
OR takes precedence over AND