<?php$n=$_GET['che'];define("A", $n);if(A==star){echo '1';}else if(A==movie){echo '9';}else if(A==tv){echo '10';}else if(A==yue){echo '10';}else if(A==zongyi){echo '12';}else if(A==news){echo '15';}else if(A==yanchu){echo '13';}else if(A==fashion){echo '20';}else if(A==astro){echo '23';}在这里弄个 统一的值输出$b 这样 echo 里的值全弄到$b去 用B输出?>
回复讨论(解决方案)
$n=$_GET['che'];define("A", $n);$b = '';if(A=='star'){$b = '1';}else if(A=='movie'){$b = '9';}else if(A=='tv'){$b = '10';}else if(A=='yue'){$b = '10';}else if(A=='zongyi'){$b = '12';}else if(A=='news'){$b = '15';}else if(A=='yanchu'){$b = '13';}else if(A=='fashion'){$b = '20';}else if(A=='astro'){$b = '23';}echo $b;
$dict = array( 'star' => '1', 'movie' => '9', 'tv' => '10', 'yue' => '10', 'zongyi' => '12', 'news' => '15', 'yanchu' => '13', 'fashion' => '20', 'astro' => '23',);echo isset($dict[$_GET['che']]) ? $dict[$_GET['che']] : ''
$dict = array( 'star' => '1', 'movie' => '9', 'tv' => '10', 'yue' => '10', 'zongyi' => '12', 'news' => '15', 'yanchu' => '13', 'fashion' => '20', 'astro' => '23',);echo isset($dict[$_GET['che']]) ? $dict[$_GET['che']] : ''
大哥

MSVCP140D.dll是一种非常重要的资源文件,如果在运行程序的时候出现了MSVCP140D.dll没有被指定在Windows上运行的错误那么就需要认真对待了,因为如果不好好处理程序是无法运行的。MSVCP140D.dll没有被指定在Windows上运行解决办法:方法一:首先下载msvcp140.dll文件解压后复制到对应的系统目录中即可(下面不同的目录地址对应的就是不同的系统不可以搞错)1、Windows95/98/Me系统,复制到C:\Windows\System目录下。2、Window

Go语言是一种现代化、高效且简洁的编程语言,广泛应用于各种领域的软件开发中。在Go语言中,输出带有换行符的文本非常简单,可以通过使用fmt包提供的Println函数实现。下面我们将具体介绍如何在Go语言中输出带有换行符的文本,以及相关的代码示例。在Go语言中,想要输出带有换行符的文本,可以使用fmt包提供的Println函数。Println函数会在输出文本的

如何在PHP中使用用户输入和输出函数进行数据处理?概述:在PHP中,用户输入和输出函数是非常重要的,它们可以让我们与用户进行交互,并且处理和显示数据。本文将介绍如何使用PHP内置的用户输入和输出函数进行数据处理,并提供相关的代码示例。一、用户输入函数:在PHP中,有很多可以获取用户输入的函数,以下是其中几个常用的函数:$_POST:用于处理通过POST方法提

很多人工作中都在使用会声会影x10软件,不过你们知道会声会影x10输出视频太大怎么办吗?下文小编就为各位带来了会声会影x10输出视频太大的解方法,感兴趣的用户一起来下文看看吧。首先,需要视频编解码器和X264视频模板10个的64位的会声会影x8和x10测试过的,方法可行。在安装x10视频编解码器时,可能会出现提示对话框,其中汉化文件的路径可能不匹配,但不影响正常使用。然后,继续一直点下一步完成解码器的安装,然后复制软件的汉化文件到相应地方,汉化文件里面有详细说明的,这里就不说了。安装成功后打开x

很多小伙伴在玩游戏的时候,突然系统提示无法启动此程序,因为计算机中丢失xlive.dll。尝试重新安装此程序以解决此问题,这是怎么一回事呢?因为该文件的缺失或者没有注册导致的,具体的解决方法下面一起来看看吧。xlive.dll没有被指定在windows运行解决方法1、开始-运行输入CMD,点击确定或者按下键盘上的回车(Enter)键,打开管理员命令提示符窗口。2、复制:for%1in(%windir%\system32\*.dll)doregsvr32.exe/s%1命令,在打开的管理员命令提示

深入解析PHP中的ECHO输出函数在PHP中,ECHO是一个用于输出字符串的函数。它被广泛应用于Web开发中,用于向用户显示内容。本文将深入解析PHP中的ECHO输出函数,包括其用法、特性以及一些常见的技巧和注意事项。1.ECHO函数的基本用法在PHP中,ECHO函数用于输出一个或多个字符串。其基本语法为:echo"Hello,world!&

php中输出数组的语句:1、使用“print_r()”函数,用于打印变量的函数,包括数组;2、使用“var_dump()”函数,用于显示变量的详细信息,包括类型,长度和值;3、使用echo语句和foreach循环;4、使用“implode()”函数,用于将数组的值连接成一个字符串;5、使用“json_encode()”函数,用于将数组转换为JSON格式的字符串。

Letusfirstseewhatisaninterfacespec.TheinterfacespecisaninterfacespecificationforamoduleprovidedbyprogramminglanguagessuchasC++andJava.Itdescribestheprototypesforthemethodsandfunctionsofthemodule.Theabcmodule在Python2.6中引入了abc模块,用于定义抽象基类(ABCs)。使用isinst


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver CS6
Visual web development tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment
