1. Value of the string: E:\wwwroot\object\storage\app/theme_downloads/2022/05/25/1653468314.0994.1295326141.zip
2. Value of the other characters: E:\wwwroot\object\storage\app/
3. The code implementation is as follows
PHP
<?php
echo ltrim('E:\wwwroot\object\storage\app/theme_downloads/2022/05/25/1653468314.0994.1295326141.zip', 'E:\wwwroot\object\storage\app/');
?>4. Result: _downloads/2022/05/25/1653468314.0994.1295326141.zip. Expected: theme_downloads/2022/05/25/1653468314.0994.1295326141.zip. As shown in Figure 1

5. The code implementation is adjusted as follows, removing the trailing / from the value of the other characters
PHP
<?php
echo ltrim('E:\wwwroot\object\storage\app/theme_downloads/2022/05/25/1653468314.0994.1295326141.zip', 'E:\wwwroot\object\storage\app');
?>6. The result meets expectations: /theme_downloads/2022/05/25/1653468314.0994.1295326141.zip
7. Finally, I decided to use the substr function to achieve the same purpose. It meets expectations. As shown in Figure 2

