- print_r: documentation ( source)
- end: documentation ( source)
- str_replace: documentation ( source)
- explode: documentation ( source)
- array_filter: documentation ( source)
<?php
$temp = '"COM1904150001","1","ytuaioeighalk","tyueiff","assets/report/celc_coba/d02c25b2-5c07-11e9-8f1a-02fd8bf7d052/"';
$temp = str_replace('"', '', $temp);
$url = explode('/', $temp);
$url = array_filter($url);
$requiredSegment = end($url);
echo '<pre>';
print_r($requiredSegment);
echo '</pre>';