PHP Remove string to the right

PHOTO EMBED

Wed Aug 03 2022 13:40:00 GMT+0000 (Coordinated Universal Time)

Saved by @kalehm

<?php
$str = "corn-receiving-pdrag08-form";
echo rtrim($str,"-form");
?>
content_copyCOPY

https://www.w3schools.com/php/phptryit.asp?filename