php - Get substr from string -
i have code
<?php echo $fileinfo[2] ?> so $fileinfo[2] outputs:
/1/video/hey-smith_.mp4 i want part of string video/hey-smith_.mp4v, how remove /1/ ?
this return 3rd character end of string:
echo substr($fileinfo[2],3);
Comments
Post a Comment