腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(1022)
视频
沙龙
2
回答
函数一直返回未定义的变量,而不是php explode中的数组
、
rgbColor);}if(strlen($hex) == 3) { $hrcolor .= "-" .
hexdec
(substr($hex, 1, 1)); //g $hrcolor .= "-" .
hexdec
(substr($
浏览 0
提问于2010-02-05
得票数 0
回答已采纳
3
回答
Php函数按明度排序颜色
、
、
$red1 =
hexdec
(substr($rgb1,0,2)); $blue1 =
hexdec
(substr($rgb1,4,2)); $green2 =
hexdec
(substr($rgb2,2,2)); $blue2 =
hexdec
(substr($r
浏览 0
提问于2011-08-10
得票数 1
2
回答
为什么“六合会”会产生不同的结果?
、
已在PHP中使用十六进制值,但尚未理解此行为echo
hexdec
((string)0x80); //296 echo
hexdec
("0x80");
浏览 1
提问于2017-11-29
得票数 1
回答已采纳
2
回答
在PHP中将IPv6转换为IPv4地址
、
、
、
为此,我使用了来自的代码$ipv4 =
hexdec
(substr($ipv6, 0, 2)). "." .
hexdec
(substr($ipv6, 2, 2)). "." .
hexdec
(substr($ipv6, 5, 2)). "." .
hexdec
(substr($ipv6, 7, 2)); 我在本地主机中尝试了它,并将:
浏览 10
提问于2017-08-15
得票数 4
1
回答
在PHP上传递十六进制颜色面临的问题
function hex2rgb($hex) { $r =
hexdec
(substr($hex,0,1).substr($hex,0,1)); $b =
hexdec
(substr($hex,2,1).substr($hex,2,1));
浏览 4
提问于2017-05-10
得票数 2
回答已采纳
1
回答
如何使用gd库获取矩形的边界半径
、
、
5465FF";$button_width = 150;$textdisplay="text"; $g_bg =
hexdec
("0x".substr($bg_color,2,2)); $b_bg =
hexdec
("0x".substr($bg_color
浏览 4
提问于2013-10-10
得票数 1
2
回答
如何在C++中跳过空格
、
#include <iostream>{char
hexdec
[100];cin>>
hexdec
;{ if
浏览 41
提问于2018-07-18
得票数 0
2
回答
通过ajax和jquery实现reLoad外部页面onLinkClick
、
、
、
$backcolor = imagecolorallocatealpha(
hexdec
hexdec
( substr( 'FFFFFF', 4, 2 ) ), $linescolor = imagecolorallocatealpha(
浏览 1
提问于2013-03-03
得票数 0
1
回答
如何将图像的rgb值显示为百分比
、
、
、
我想显示一个图像的RGB值作为百分比。
浏览 1
提问于2016-09-08
得票数 0
3
回答
用PHP将JSON字符串转换为Unicode
、
、
、
、
使用我的井号进行测试),但它似乎不起作用: $title = preg_replace("/\\\\u([a-f0-9]{4})/e", "iconv('UCS-4LE','UTF-8',pack('V',
hexdec
浏览 0
提问于2013-01-25
得票数 6
回答已采纳
3
回答
我怎样才能给imagecolorallocate一个颜色呢?
、
、
、
我有一个PHP变量,它包含有关颜色的信息。例如$text_color = "ff90f3"。现在我想把这个颜色给imagecolorallocate。imagecolorallocate是这样工作的:因此,我正在尝试做以下工作:$g_bg = bin2hex("0x".substr($text_color,2,2)); $b_bg = bin2hex("0x
浏览 1
提问于2010-06-02
得票数 8
回答已采纳
4
回答
调用PHP函数
、
、
image $red =
hexdec
(substr($bgcolor,0,2)); $blue =
hexdec
(substr($bgcolorimagecolorallocate($png, $red, $green, $blue
浏览 0
提问于2009-12-23
得票数 0
回答已采纳
3
回答
PHP未定义变量和函数名必须是字符串错误。
$A="67452301";$C="98BADCFE";{ $Y =
hexdec
($Y); $calc = (($X & $Y) | ((~ $X) & $Z)); // X AND Y OR
浏览 4
提问于2016-07-22
得票数 0
回答已采纳
2
回答
从Python 3中的模块调用数组
、
dynamic_array = []strArray = [
hexdec
[idx:idx+2]for idx in range(len(
hexdec
)) if idx%2 == 0] def FirstPointer(element):
浏览 0
提问于2018-10-19
得票数 1
回答已采纳
1
回答
如何让这个程序重复运行,直到用户决定终止?
include <iostream>using namespace std; { string
hexdec
_numdecimal number: "; {
hexdec
_num= hex[r] +
hexdec
_nu
浏览 39
提问于2021-10-16
得票数 0
1
回答
如何用PHP和GD记述字体swash
、
、
、
、
= 30;$fontColour = imagecolorallocate($image,
hexdec
('11'),
hexdec
('11'),
hexdec
('11')); $bgColour = imagecolorallocate($image,
hexdec
('CC'),
hexdec
('CC'),
浏览 2
提问于2015-12-04
得票数 6
回答已采纳
1
回答
在PHP中从文本创建IMage -如何创建多行?
、
、
、
create the image $red =
hexdec
(substr($bgcolor,0,2));$blue =
hexdec
(substr($bgcolor,4,2));bg = imagecolorallocate($png, $red, $green, $b
浏览 0
提问于2009-07-08
得票数 7
回答已采纳
1
回答
ESC/POS PHP条码打印
、
、
$handle) { exit(0);fwrite($handle, chr(
hexdec
('1D')).'H'.chr(2)); fwrite($handle, chr(
hexdec
('1D')).'h'.chr(60));
浏览 5
提问于2013-12-30
得票数 1
2
回答
Symfony中小枝输出打印机ESC码
、
、
、
html.twig', array('order' => $order))fwrite($handle, chr(
hexdec
('0A')));不过,这一切都很有魅力。
浏览 5
提问于2014-03-22
得票数 0
回答已采纳
点击加载更多
相关
资讯
【数学函数分享】PHP函数hexdec()分享(2021-1-27)
带你轻松掌握进制转换
PHP 进制转换
从零基础到成功解题之0ctf-ezdoor
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券