date_interval_create_from_date_string alias DateInterval::createFromDateString is used for setting up a DateInterval from the relative parts of the string. It uses the normal date parsers and sets up a DateInterval from the relative parts of the parsed string. It returns new DateInterval instance if success.
Description about Set Up Dateinterval From Date String PHP
public static DateInterval DateInterval::createFromDateString ( string $time )
Parameters of date_interval_create_from_date_string() PHP
time - Date with relative parts.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.