0 php
目前我有:
$page = basename($_SERVER['REQUEST_URI']);
<li<?php if($page == 'index.php?page=product') print ' id="current"'; ?>><a href="index.php?page=product">Products</a></li>
Run Code Online (Sandbox Code Playgroud)
但是当url类似于index.php?page = product&item = 100
类'id = current'不适用.
任何解决方法?
谢谢你的帮助.