- Output for 5.6.38, 7.1.0 - 7.1.23, 7.2.0 - 7.2.11
- Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/G6JIq on line 6
Process exited with code 255.
<?php
$file_name = '\\foo\\bar\\baz';
$file_name = 'baz';
$ext = substr($file_name, strrpos($file_name,'\\')+1)
echo $ext;