<?php $data = '2022-07-05 10:52:01';echo date('m', strtotime($data));
Standard input is empty
07
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!