Can someone tell me how the string pattern works in preg_split?
$query="./pictures/dance/dance-1.JPG";
$act = preg_split('(/)', $query, '-1');
By guess and check I got that to separate it based on the /'s, but I also want it separated based on the .'s. Not so much looking for a solution, but an understanding of how the patterns are constructed in order to disassemble a string.