phpx PHP Utility Extension (pure php compatible) str_starts_with('prefix_foobar', 'prefix_'); str_ends_with('foobar_suffix', '_suffix'); $ls = findbin('ls'); // returns /bin/ls