<?php
$string = '2014-02-05_10_10_33_664766918_index.log';
echo substr strrpos($string, '.');
echo '<br>';
echo substr ($string, 0, strrpos($string, '.'));
echo '<br>';
echo substr ($string, strrpos($string, '.'));
- Output for 5.4.0 - 5.4.24
- Parse error: syntax error, unexpected 'strrpos' (T_STRING), expecting ',' or ';' in /in/3fV5J on line 4
Process exited with code 255. - Output for 5.3.0 - 5.3.28
- Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/3fV5J on line 4
Process exited with code 255.
preferences:
185.19 ms | 1386 KiB | 61 Q