- substr: documentation ( source)
- print_r: documentation ( source)
- strrpos: documentation ( source)
- str_split: documentation ( source)
<?php
$my_thing = "thisismy.image.jpg";
$last_dot = strrpos($my_thing, ".");
$ext = substr($my_thing, $last_dot);
print_r(str_split($my_thing));