开发者

Is there a way to add a get variable to the php include

开发者 https://www.devze.com 2023-03-05 09:14 出处:网络
I am trying to do this ...is it possible <?php include(\"includes/sidebar.php?show开发者_如何学Go_hide_tab=true\"); ?>

I am trying to do this ...is it possible

<?php include("includes/sidebar.php?show开发者_如何学Go_hide_tab=true"); ?>

because some pages dont need some logic in the sidebar


Just do this

<?php
    $show_hide_tab = true;

    include('includes/sidebar.php');
?>

The scope of the $show_hide_tab variable will fall through to the include script.

0

精彩评论

暂无评论...
验证码 换一张
取 消