Codice PHP:
$ieri date("d-m-Y"mktime (0,0,0,date("m")  ,date("d")-1,date("Y"))); 


EDIT: scusate non avevo visto le risposte precedenti