私は私ができることを知っています
$threemonthsago = date("Y-m-d", strtotime("-3 month"));
echo "$threemonthsago";
ただし、3か月前ではなく3.5か月前に取得したいです。だから私はやろうとした
$threemonthsago = date("Y-m-d", strtotime("-3.5 month"));
echo "$threemonthsago";
しかし、それは私に正しい日付を与えていないようです.9月のように、現在の4月以来そうあるべきではありません.