What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-03-16 13:35:18
change font color if background is dark or light in php
get_brightness($hex) { // returns brightness value from 0 to 255 // strip off any leading # $hex = str_replace('#', '', $hex); $c_r = hexdec(substr($hex, 0, 2)); $c_g = hexdec(substr($hex, 2, 2)); $c_b = hexdec(substr($hex, 4, 2)); ... Add solution -
-
-
PHP 2022-03-02 19:45:04
get_rss_feed php
<?php $url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCbMi18KmKXRb79716KgnVOA"; $xml = simplexml_load_file($url) or die("Error: Cannot create object"); //echo "number of entries: " . count($xml->entry) . &... Add solution
Best helpers
Ranking is empty