PHP Regex to remove everything after a character - Stack Overflow

PHOTO EMBED

Fri Feb 18 2022 22:52:37 GMT+0000 (Coordinated Universal Time)

Saved by @patdevwork #php

$beforeColon = current(explode(':', $string));
content_copyCOPY

https://stackoverflow.com/questions/12696996/php-regex-to-remove-everything-after-a-character