I don't want to know how to use substr
, there are many examples. But I want to know if it is the best way to short a string? Is there a better/more professional way to do this?
For example, this is what my print_r gives me. But I only need houres and minutes.
string(25) "2020-03-05T12:00:00+01:00"