honar systems
  • Tutorial
    • CSS Tutorial
    • PHP
    • WordPress
      • WordPress Development
      • WordPress Theme
      • WordPress Plugin
    • React JS
  • Products
    • Zolog Blogging WordPress Theme
    • Chefex Blogging WordPress Theme
    • WiSu – WordPress Light Blog Theme
    • Honrix Addon Plugin
  • Blog
  • Contact Us
  • Support
    • New Ticket
    • Tickets
  • Account
Instagram LinkedIn
Posted On: 26 Dec, 2021 - Posted By: Honar Systems

Convert Hex Color Format To RGB in PHP

Used before category names. Blog PHP

Convert Hex Color Format (#FFFFFF) to RGB

function hs_hex_to_rgb($hex)
{
    list($r, $g, $b) = sscanf($hex, "#%02x%02x%02x");
    return array($r, $g, $b);
}
Tags:
php code snippets, php development

Related Posts

PHP And React Contact Form With MySQL Database and AJAX

PHP And React Nested Rating System With MySQL Database

PHP React Nested Comment System With Reply

Latest Posts

  • PHP And React Contact Form With MySQL Database and AJAX
  • PHP And React Nested Rating System With MySQL Database
  • PHP React Nested Comment System With Reply
  • PHP in_array()
  • PHP Date From String

Categories

  • Blog
  • CSS
  • Elementor
  • HTML
  • JavaScript
  • PHP
  • React JS
  • SEO
  • WordPress
Copyright ©2023 Honar Systems