How can I convert this into a string?
$eventTime3 = date("H.i", strtotime("$eventTime - $deliveryTime minutes"));
So I can do a replace on it? Thanks in advance!
You can make any variable value into a string by enclosing them in quotes
$eventTime3 = "date(\"H.i\", strtotime(\"$eventTime - $deliveryTime minutes\"))";
dast wrote:How can I convert this into a string? $eventTime3 = date("H.i", strtotime("$eventTime - $deliveryTime minutes")); So I can do a replace on it? Thanks in advance!
Not sure what you mean. date() returns a string, so $eventTime3 will be a string already after that line executes. If you mean something else, I'll need a more detailed explanation.