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.
私は以下の PHP コードを持っています。
$slug = $_SERVER['REQUEST_URI']; $myslug = substr($slug, 4); $new_slug = chop($myslug,"?lang=fr");
これらの変数をすべて排除できます。
$slug = chop(substr($_SERVER['REQUEST_URI'], 4),"?lang=fr");