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

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -