Split string from a date

后端 未结 6 750
逝去的感伤
逝去的感伤 2020-12-11 14:38

I want split a string using PHP to get a individual date info.

For example:

$date = \'08/05/2010\';

would create the varables

6条回答
  •  借酒劲吻你
    2020-12-11 15:08

    if that's your example, you could explode it into an array.

    $array = explode('/', $date);

提交回复
热议问题