function A($param) { if (!is_null($W = cache_me())) return $W; calculs ... return $resultat; }