IT入门 > 教程 >
  • PHP imagecolorat - 取得某像素的颜色索引值 日期:2022-10-12 点击:9763 php

    imagecolorat — 取得某像素的颜色索引值。 语法 int imagecolorat ( resource $image , int $x , int $y ) 返回 image 所指定的图形中指定位置像素的颜色索引值。 如果 PHP 编译时加上了 GD 库 2.0 或更高的...

  • PHP imagecolorclosest - 取得与指定的颜色最接近的颜 日期:2022-10-12 点击:8218 php

    imagecolorclosest — 取得与指定的颜色最接近的颜色的索引值。 语法 int imagecolorclosest ( resource $image , int $red , int $green , int $blue ) 返回图像调色板中与指定的 RGB 值最"接近"的颜色。 指定的...

  • PHP imagecolorclosestalpha - 取得与指定的颜色加透明度 日期:2022-10-12 点击:6547 php

    imagecolorclosestalpha — 取得与指定的颜色加透明度最接近的颜色的索引。 语法 int imagecolorclosestalpha ( resource $image , int $red , int $green , int $blue , int $alpha ) 返回图像调色板中与指定的 RGB 值以...

  • PHP imagecolorclosesthwb - 取得与指定的颜色最接近的 日期:2022-10-12 点击:5010 php

    imagecolorclosesthwb — 取得与指定的颜色最接近的色度的黑白色的索引。 语法 int imagecolorclosesthwb ( resource $image , int $red , int $green , int $blue ) 取得与给定颜色最接近的色度的黑白色的索引。...

  • PHP 获取图像宽度与高度 日期:2022-10-12 点击:9278 php

    PHP 获取图像宽度函数:imagesx() imagesx() 函数用于获取图像的宽度,单位为像素,返回值为整型。 语法: int imagesx( resource image ) 参数 image 为如 imagecreatetruecolor()、imagecreatefromjpeg() 等函数...

  • PHP preg_filter() 函数 日期:2022-10-12 点击:8187 php

    preg_filter 函数用于执行一个正则表达式搜索和替换。 语法 mixed preg_filter ( mixed $pattern , mixed $replacement , mixed $subject [, int $limit = -1 [, int $count ]] ) preg_filter() 等价于 preg_replace() ,但它仅仅...

  • PHP preg_grep() 函数 日期:2022-10-12 点击:3565 php

    preg_grep 函数用于返回匹配模式的数组条目。 语法 array preg_grep ( string $pattern , array $input [, int $flags = 0 ] ) 返回给定数组 input 中与模式 pattern 匹配的元素组成的数组。 参数说明: $patter...

  • PHP preg_last_error() 函数 日期:2022-10-12 点击:4255 php

    preg_last_error 函数用于返回最后一个 PCRE 正则执行产生的错误代码。 语法 int preg_last_error ( void ) 实例 返回数组中指定匹配的元素: ?phppreg_match('/(?:\D+|\d+)*[!?]/', 'foobar foobar foobar'); if (pr...

  • PHP preg_match_all() 函数 日期:2022-10-12 点击:3264 php

    preg_match_all 函数用于执行一个全局正则表达式匹配。 语法 int preg_match_all ( string $pattern , string $subject [, array $matches [, int $flags = PREG_PATTERN_ORDER [, int $offset = 0 ]]] ) 搜索 subject 中所有匹配...

  • PHP preg_match() 函数 日期:2022-10-12 点击:1751 php

    preg_match 函数用于执行一个正则表达式匹配。 语法 int preg_match ( string $pattern , string $subject [, array $matches [, int $flags = 0 [, int $offset = 0 ]]] ) 搜索 subject 与 pattern 给定的正则表达式的一个匹...