ipstack
{ “continent_code”: “NA_FakeDataByBinh”, “continent_name”: “North America”, “country_code”: “US”, “country_name”: “United States”, “region_code”: “CA”, “region_name”: “California”, “city”: “San Jose”, “zip”: “95138”, “latitude”: “37.237838745117”, “longitude”: “-121.83061218262” }
How to send JSON string via POST in PHP
Some modern web services and APIs that requires API consumers to send JSON via a POST request. Here’s how you would program to do such task. Once we’ve got the response from the API Provider, we can decode the JSON back to an array using json_decode() function, so that PHP can process or display to client easily.
Bubble Sort
Quick Sort
JavaScript tags in HTML document throws a parsing error
PHP Fatal error: Uncaught Spipu\Html2Pdf\Exception\HtmlParsingException: The HTML tag provided is invalid in /vendor/spipu/html2pdf/src/Parsing/TagParser.php:44 Fixes: For HTML2PDF < 5.x (html2pdf.class.php)