Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
http://www.webpage.ee/xxx-galerii/event-02-02-13
如何使用 php 从该 url 中获取“xxx”部分?左边总是有“ee/”,右边总是有“-galerii”。
$path = parseurl($url, PHP_URL_PATH); list($xxx) = explode('-', $path, 2);