我想这样做......是否有可能
<?php include("includes/sidebar.php?show_hide_tab=true"); ?>
Run Code Online (Sandbox Code Playgroud)
因为有些页面在侧栏中不需要一些逻辑
就这样做吧
<?php
$show_hide_tab = true;
include('includes/sidebar.php');
?>
Run Code Online (Sandbox Code Playgroud)
$show_hide_tab变量的范围将落入包含脚本.
| 归档时间: |
|
| 查看次数: |
62 次 |
| 最近记录: |