[ create a new paste ] login | about

Link: http://codepad.org/AMxX8wjV    [ raw code | output | fork ]

PHP, pasted on Jan 24:
1
2
3
4
5
6
7
<?php

$path = 'someplace/somefile.jpg';

$withoutExt = pathinfo($path, PATHINFO_FILENAME);

echo $withoutExt;


Output:
1
somefile


Create a new paste based on this one


Comments: