Saurabh Gandhe I bring your ideas to life!

Tagphp

PHP Wrapper for NewsAPI.org

P

I came across a nice website NewsAPI.org that gives you access to news from around the world. You can filter based on country, language and category. Check it out: Documentation: They didn’t have a PHP wrapper, and I was getting bored, so I scribbled a wrapper using curl to use it in PHP applications. Add the API Key Generated using a Free Account(it has some limitations). Look at the...

There’s a better way for if($var == 5). It’s ..

T

Ever wandered which one is correct? if($var ==5) or if (5==$var)? Why? Although, you might see a warning in your IDE, it’s unlikely you will get any error for saying if($var = 5) , but if you have a habit of using the other way, you will get an error for assigning variable to constant. <?php What you use if($var == 5){} What you should use if(5==$var){} Why you should follow me ...

Saurabh Gandhe I bring your ideas to life!

Contact Hands-on DevOps with Azure/AWS Experience

Recent Posts

Categories