Before every awesome website there is a Coming soon page before it. I have made this template with simplicity of style in mind. Let’s start with a subtle fade-in during page load. Then came the Logo and I’ve placed a Cron countdown timer in the middle of the page. Hmmm…. We need to communicate.. Let’s […]
PHP Question: If you have a string generated by a loop and having an unnecessary character at the end of your string, a coma “,” for example which probably you’ve generated from a loop. $string=’a,b,c,e,d,f,g,’; Here’s a couple of many solution to take.
echo rtrim($string,','); // for specific character
echo substr($string, -1); // for any character
I hope you find this helpful. Have a great day! I […]