Sign in with Twitter using PHP

With millions of registered users worldwide, twitter is one of the most used social networking website on the internet, we cannot overlook its importance, it can really boost registrations rate in your site. In this tutorial, we will be using Twitter API to register users on your website.

Get Percentage Function PHP

Sometimes we need to calculate the percentage of certain value in our project. In that circumstances you can use following PHP snippet to do that task.echo get_percentage(10, 100); //usage function get_percentage($percentage, $of) { //courtesy : http://stackoverflow.com/a/14880194 $percent = $percentage / $of; return number_format( $percent * 100, 2 ) . '%';; }