Get Image Name from Image Path.
$Sample_Image_url = http://localhost/demo/assets/05a1222222222222222222d.jpeg
$image_name = get_imageName_fromUrl( $Sample_Image_url );
Here, iamge Name Prints the image name by exploding it fro url.
$imageEx = explode('/', $image_url);
$image_name = end($imageEx);
$returnData = $image_name;
$Sample_Image_url = http://localhost/demo/assets/05a1222222222222222222d.jpeg
$image_name = get_imageName_fromUrl( $Sample_Image_url );
Here, iamge Name Prints the image name by exploding it fro url.
$imageEx = explode('/', $image_url);
$image_name = end($imageEx);
$returnData = $image_name;
No comments:
Post a Comment