Definition:
function before_last_bar( $string ) {}
Parameters
- $string
Source code
function before_last_bar( $string ) { $last_bar = strrpos( $string, '|' ); if ( false == $last_bar ) return $string; else return substr( $string, 0, $last_bar ); }
561
No comments yet... Be the first to leave a reply!